安装cacti时提示错误

打开http://your-server/cacti/时
提示:Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.

查看了lib/database.php其实是只要连接不上就有这个提示。
而大多数是因为mysql用户密码需要old_password加密.
其实只要按照cacti的安装说明install_windows.html中Install MySQL段完全照做就可以。主要是:
shell> UPDATE mysql.user SET Password = OLD_PASSWORD('cactipwd') WHERE Host = 'localhost' AND User = 'cactiuser';
mysql> FLUSH PRIVILEGES;
posted @ 2008-03-05 22:46  dkcndk  阅读(282)  评论(0编辑  收藏  举报