ras`

Member
Apr 25, 2006
18
0
151
Hi,

I am encountering error messages as I visit one of our site:

Warning: mysql_connect(): Access denied for user: '[email protected]' (Using password: YES) in /home/internet/public_html/directory/class/db.php on line 28
Error connecting to the serverAccess denied for user: '[email protected]' (Using password: YES)

anyone encounter the same and tell me how to resolve this thing.
glad to hear from anybody.

ras
 

tweakservers

Well-Known Member
Mar 30, 2006
379
0
166
are you connecting using ip address or using localhost? If IP address, does it allowed for the database in Cpanel allowed host?
 

madaboutlinux

Well-Known Member
Jan 24, 2005
1,051
2
168
Earth
Try following the below steps.

1. Login to cPanel for that domain.
2. Goto 'Databases' and delete the user assigned to that particular database.
3. Add the user and assign to the database again with full privilages.
4. Edit the db.php file and replace the old database username/password with the new one you have just created.

Also check whether your are using the servername as IP addr or localhost. Change it to 'localhost'

Hope this will help you.
 

kemis

Well-Known Member
Feb 17, 2005
104
0
166
Georgetown, TX
Yeah, going to WHM --> Change a User or Database Password and resetting my mysql root password back to my usual fixed the problem for me. Many others are having this same issue. Happened to me after an auto-upgrade last night to 4.1.19. :-(

All is well again, I believe.

-- Matt
 

ras`

Member
Apr 25, 2006
18
0
151
Thanks guys for all the information,

After deleting and replacing it, solves the problem.