歡迎您光臨本站 註冊首頁

[已解決]遷移cacti的資料庫

←手機掃碼閱讀     火星人 @ 2014-03-03 , reply:0

[已解決]遷移cacti的資料庫

  

cacti和cacti資料庫不在同一台機器,現在想把cacti資料庫遷移到cacti的機器下,資料庫已經移過來了,我修改cacti的配置文件config.php :
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "123456";
$database_port = "3306";
改完后保存,cacti全部不出圖,我該從哪找原因啊。
請各位高手幫幫忙。感激不盡!!!
《解決方案》

在console ->System Utilities ->View Cacti Log File 下,看看報什麼錯
《解決方案》

好,謝謝!我先自己再找找。
《解決方案》

原來遷移資料庫除了改cacti的config.php文件外,還要修改spine的配置文件,將兩個配置文件的資料庫IP都指向你要遷移的資料庫IP就可以了。
《解決方案》

這是找問題的方法,多謝賜教!!!回復 2# jianxue4


   
《解決方案》

你需要修改以下文件

(1)/var/www/html/include目錄下的config.php

(2)/var/www/html/plugins/syslog目錄下的config.php

(3)/etc目錄下的rsyslog.conf

(4)/etc目錄下的spine.conf

《解決方案》

謝謝分享!回復 5# deweiku


   

[火星人 ] [已解決]遷移cacti的資料庫已經有518次圍觀

http://coctec.com/docs/service/show-post-461.html