[CentOS] Cacti Installation on CentOS 5

Wed Sep 2 13:12:38 UTC 2009
John Doe <jdmls at yahoo.com>

From: Gabriel - IP Guys <Gabriel at impactteachers.com>
> FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure
> you have specified a valid MySQL database name in 'include/config.php'
> 
> The database configuration in config.php is correct, and is readable,
> because if I change the hostname, the error message changes accordingly.
> I can connect to the MySQL database just fine with the configuration
> information that is in config.php. Any ideas would be appreciated - If
> this become too off topic, someone feel free to say so.

Checked about hostname vs socket connection to mysql?
   http://dev.mysql.com/doc/refman/5.0/en/can-not-connect-to-server.html

JD