MySQL database access

Status
Not open for further replies.

dwolstro

New Member
Messages
2
Reaction score
0
Points
0
My account was suspended, but has since been reactivated. However, I still cannot access my MySQL database from within my PHP script. I get the following:

Code:
Warning: mysqli_connect() [function.mysqli-connect]: (42000/1044): Access denied for user 'dwolstro_admin'@'starka.x10hosting.com' to database 'dwolstro_melissa' in /home/dwolstro/public_html/code/clientlogin.php on line 13

Any ideas?

Thanks,
Dave W
 

descalzo

Grim Squeaker
Community Support
Messages
9,372
Reaction score
326
Points
83
Double check that the DB name is spelled correctly (go to phpMyAdmin and check how it is really spelled). That phrasing of the error message often means that the DB you are trying to access does not exist (instead of your password being wrong, etc).

EDIT/ADD

It can also mean that the user and password are valid, but the user is not assigned to the DB
 
Last edited:

dwolstro

New Member
Messages
2
Reaction score
0
Points
0
Thanks, that did the trick. I had to add the user to the database. My account had been suspended, so I created a new user when it came back online, but I hadn't added it to the database.
 
Status
Not open for further replies.
Top