Web Hosting Talk







View Full Version : MySQL username restrictions?


vito
11-05-2003, 11:06 AM
I have a new customer who created a MySQL database in his cPanel. When trying to point to a page in his script, he gets the following error:

-----------------------------------------------
\Warning: mysql_connect(): Access denied for user: '[*****]_nobody@localhost' (Using password: NO) in /home/*****/public_html/bboard.php on line 133
Unable to connect!
-------------------------------------------------

Obviously, the ***** in the error is there replacing my actual customer's account name.

So what is being rejected here? Does it not like to user created? Are you not able to create a user called "nobody" ?

Vito

sprintserve
11-05-2003, 11:30 AM
The script isn't trying to authenticate with SQL I think.. since the error message says that no password was sent to it.

vito
11-05-2003, 11:33 AM
Thanks, sprintserve. That makes sense. I have just solved it. In the config file, $passwd is used. But in the script, it calls for $pass. So I changed $passwd to $pass in the config file and it works.

:banana:

Vito