PDA

View Full Version : Control Panel MySQL errors?


Albert Lewis
02-11-2004, 01:24 AM
Alright when i log into my CP and go to my MySQL manager, under the different databases that i have set up, i get this error under some of them, at different times.


Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:username_dbname:localhost","username_dbuser","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("localhost", "username_dbuser", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("username_dbname");



I have changed username_dbname and username db_username but can anyone tell me what the hell is going on?

And anyone having problems getting into it with phpmyadmin? i can't even log on with the right username and pass.

kitejumper
02-11-2004, 08:33 PM
Im having the exact same problem, trying to set up a site for a teacher and need it done by next weekend. getting the error...


Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:<name>:localhost","<name>","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("localhost", "<name>", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("<name>");


I searched the problem, and there arnt any typos in the username and password, somethings wrong with the control pannel or something. cause i tried deleting it and reentering it several times.


Any help would be appricated,
-mike

kitejumper
02-12-2004, 12:00 AM
i get the same error no matter how many databases i make, or what i name them.

it seems to be a problem in the control pannel.


when did you set up your account?

TomD
02-12-2004, 01:21 AM
Are you remembering to assign the user to the database?

HR's Creating MySQL databases (http://support.hostrocket.com/index.php?page=index_v2&id=46&c=15) FAQ.

Fox
02-13-2004, 09:28 AM
As far as i know, THIS IS NO ERROR

it simply shows you what code to use to connect