2016年1月5日

MySQL for Cacti 相關指令

建立cacti資料庫
[root@localhost ~]#mysqladmin --user=root create cacti

刪除cacti資料庫
[root@localhost ~]#mysqladmin --user=root drop  cacti

顯示cacti資料庫所有table
[root@localhost ~]#mysqlshow -u cactiuser -p cacti
or
mysql> SHOW TABLES FROM cacti;

刪除cacti資料庫特定table
[root@localhost ~]# mysql -u cactiuser -p
Enter password:
mysql> USE cacti;
mysql> drop table syslog,syslog_alert,syslog_incoming,syslog_remove,syslog_reports;

列出所有的資料庫
mysql> SHOW DATABASES;

(繼續閱讀...)

Copyright © 2009 New Life in Taipei All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.