My System: RHEL 5.5
Cacti Version: 0.8.8a and 0.8.7g
After setup when I try to browse, an error shows: FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
Could anyone please help me regarding this.
Some Info related to my configuration:
Code:
groupadd cacti
useradd -g cacti cactiuser
MySQL configuration:
set password for root@localhost=password('*****');
create database cactidb;
grant all on cactidb.* to root;
grant all on cactidb.* to root@localhost;
grant all on cactidb.* to cactiuser;
grant all on cactidb.* to cactiuser@localhost;
use cactidb;
set password for cactiuser@localhost=password('*****');
useradd -g cacti cactiuser
MySQL configuration:
set password for root@localhost=password('*****');
create database cactidb;
grant all on cactidb.* to root;
grant all on cactidb.* to root@localhost;
grant all on cactidb.* to cactiuser;
grant all on cactidb.* to cactiuser@localhost;
use cactidb;
set password for cactiuser@localhost=password('*****');
And in include/config.php:
Code:
$database_type = "mysql";
$database_defaut = “cactidb”;
$database_hostname = “localhost”;
$database_username = “cactiuser”;
$database_password = “*****”;
$database_defaut = “cactidb”;
$database_hostname = “localhost”;
$database_username = “cactiuser”;
$database_password = “*****”;
With same configuration I have configured cacti one years ago. I can't understand why the error is showing. Please help me.
출처 : http://forums.cacti.net/viewtopic.php?f=2&t=49673
'Security > Monitoring' 카테고리의 다른 글
[jpcap] JPCAP을 이용한 패킷스니핑 (0) | 2014.12.04 |
---|---|
[Cacti] Install and Configure Cacti 설치하다 발생한 문제 (0) | 2014.12.04 |
[Monitoring] Centos 6.5 – Install and setup CACTI (0) | 2014.12.04 |
[Monitoring] Java SNMP Programming (0) | 2014.12.03 |
[Monitoring] RRDTOOL + MRTG 트래픽 페이지 보기 (CentOS6.5) (0) | 2014.12.03 |
댓글