Trouble connecting to Mysql...

Status
Not open for further replies.

darellbee

New Member
Messages
19
Reaction score
0
Points
0
I am getting the error message, "access denied to user 'user@localhost' using password: YES, on two different scripts. One is CGI based and has been connected before. It was removed to try a PHP based script and this is when I the error message started. To see if it was the script, I went back to the CGI, which has worked before, and am getting the same error message. I have tried deleting the database and started over completely, and have tried, at this point, 3 different passwords and still the same problem. Any help would be appreciated!
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
Can you post the setting that you are using to connect to MySQL (Not the password of course)?

"access denied to user 'user@localhost' using password: YES
The username should be darellb
 

darellbee

New Member
Messages
19
Reaction score
0
Points
0
Thanks for the reply TechAsh. The last settings I have tried:
Database server=localhost
Database Name =list
Database user = dbridge
Database password=XXXXXXX

I thought the database user was the user you set up when you created the database. but these are the last settings I have used.
Edit:
darellb did not work though!!
 
Last edited:

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
You have to put your cPanel username and a underscore in front of the database name and user.

Try this:
Database server= localhost
Database Name = darellb_list
Database user = darellb_dbridge
Database password= XXXXXXX
 

darellbee

New Member
Messages
19
Reaction score
0
Points
0
You think you're so smart don't you!!!!.....Of course it worked!!!! Thanks for the help. I totally cannot believe it was that simple. All this time....Thanks TechAsh!!!!!
Edit:
I will say, thanks to the awesome response time of TechAsh, this thread is closed. Moving on!!!!
 
Last edited:

tnl2k7

Banned
Messages
3,131
Reaction score
0
Points
0
I'll close this thread for you then :D.

-Luke.

* Thread Closed *
 
Status
Not open for further replies.
Top