cacti does not connect to mysql at all - SOLVED

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
grlongo
Posts: 11
Joined: Sun Nov 28, 2010 1:19 am

cacti does not connect to mysql at all - SOLVED

Post by grlongo »

Hi all,

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.
Last edited by grlongo on Sun Nov 28, 2010 11:49 pm, edited 1 time in total.
grlongo
Posts: 11
Joined: Sun Nov 28, 2010 1:19 am

Re: cacti does not connect to mysql at all - possible bug

Post by grlongo »

Mates,

Problem solved by installing this package of cacti.

http://forums.cacti.net/viewtopic.php?t=14946

This was not the solution for what it seens to be a bug. But worked anyway.
I am having now problems with the graphs but I´ll open a new post.

Thanks.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: cacti does not connect to mysql at all - possible bug

Post by BSOD2600 »

There is an issue with php 5.3 and cacti. the installer still uses 5.2.x, which is why it worked.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest