View Single Post
Old February 16th, 2006, 11:57 PM   #4 (permalink)
David
?™
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7, Pass 78
14,157 posts
Gave thanks: 68
Thanked 53 times
Send a message via Skype™ to David
Re: What's wronge with my database??!!!

Quote:
Originally Posted by mr_fern
Modify the script

This line:
mysql_select_db("$dbname") or die( "Unable to select database.");

Change it to:
mysql_select_db("$dbname") or die( mysql_error() );

P.S.

Have you made sure that you already granted the user privileges for the database? Sometimes people create the database, create the user, but forget to grant the user privileges to the database. This might very well be it.

In any case, just modify the php line to what I gave you and when you run the script it will give you a specific reason why it couldn't connect to the database.
From a screenshot I saw, his user has them all, but it's still not connecting. I installed it fine on mine, but it's not working on his for some reason. I thought about the modification, but since it's in that variable format, it seems it should have worked anyway.
__________________
I'm a web designer that founded the company Asheboro Creative. You can follow me on Twitter, add me on Myspace, or read my articles on Asheboro Tech.
David is offline   Reply With Quote