Another msql connection problem.

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
gr8nash
Posts: 2
Joined: Wed Nov 10, 2004 3:00 pm

Another msql connection problem.

Post by gr8nash »

Cannot connect to MySQL server on '�localhost�'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
I have spent alittle while cruising the boards, and found similar problems, but mostly on windows systems. .im funning fedora core 2 with mysql 3.23.58. I install all the depencies, and used the rpm to install. all went well. I used the "Cacti-Linux-How-To.pdf" walkthrough to create the mysql db and user wihe permissions. This is not a new install, but i have a phpbb forum on it so i know that php-apachee-mysql is installed and working. not sure what the funky questionmarks next to local host are.

here is my .conf
$database_type = "mysql";
$database_defaut = “cactidb”;
$database_hostname = “localhost”;
$database_username = “root”;
$database_password = “forest1”;

Code: Select all

[root@web root]# mysql cactidb -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 16 to server version: 3.23.58

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> see it worked =(
i know im not suppose to use root, and i wont, i just wanted to know its not a permission thing, also its not hooked to the outside.

anyway thanks for the amazing product you guys make..
-andy


:)
gr8nash
Posts: 2
Joined: Wed Nov 10, 2004 3:00 pm

Post by gr8nash »

Ok found the problem if you look close ot the .conf file above those arnt qoutes.. they are something different.. kinda like ascii symbols. also default is spelled wrong. all of that happened by copy and pasting from here:

http://www.cacti.net/downloads/docs/con ... How-To.pdf

ok well problem solved moving on. i dont know if anyone can update that pdf or not?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest