Got an easy one for you... Hard for me ; ;

Garlund

New Member
Messages
29
Reaction score
0
Points
0
Running a user login system. Getting following error message,

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'username-youaintgettingit'@'Imhopinglocalhost' (using password: YES) in /directory/hidden/for/security/reason :p on line 24
Access denied for user 'username-youaintgettingit'@'Imhopinglocalhost'.


Got everything else where it needs to be. Just stomped by this one error. Hook a NooB up?

Thanks!

PS: Searched for something similar to this but was unsuccessful, however I seem to have selective sight at times and may have missed it. So, once again, sorry in advance!
 

kajasweb

New Member
Messages
1,723
Reaction score
0
Points
0
Your MySQL Host is localhost and the MySQL Username will be in the format cpanelusername_mysqlusername.
 
Last edited:

MaestroFX1

Community Advocate
Community Support
Messages
1,577
Reaction score
60
Points
0
Please provide more info on the error and your configuration.
**As this can also happen due to mis-configured database/it's user/user's password.
 

Sohail

Active Member
Messages
3,055
Reaction score
0
Points
36
It could be because one of your settings, username, or password is not correct. I'm quite sure it has nothing do to with upgrading your version of PHP.
 

Garlund

New Member
Messages
29
Reaction score
0
Points
0
Cool! I'll work on those tips and see what happens. And thanks for the quick reply peeps! 'Preciate it!
Edit:
It works! It was the username and database name. I corrected it and ran the .sql script. Works like a charm :D


Thanks!
 
Last edited:
Top