I can´t get cacti to connect to mysql.
Strange thing is that I am able to connect through "mysql -ucactiuser -pcactipw cacti"
I followed every detail in here:
http://docs.cacti.net/manual:087
And many others tutorials trying to fix this problem:
FATAL: Cannot connect to MySQL server on '127.0.0.1'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
I am using php5.3.3, apache2.2 and mysql5.1.53 and cacti0.8.8
Also this is my cacti config.php
Code: Select all
<?php
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "127.0.0.1"; //Also I tried "localhost"
$database_username = "cactiuser";
$database_password = "cactipw";
$database_port = "3306";
/* load up old style plugins here */
$plugins = array();
//$plugins[] = 'thold';
/*
Edit this to point to the default URL of your Cacti install
ex: if your cacti install as at http://serverip/cacti/ this
would be set to /cacti/
*/
$url_path = "/cacti/";
/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";
?>
I don´t know what to do any more... in ubuntu the installation was straight foward but in windows cacti does not connect to mysql at all.