joey99881
Member
Posted 11 months ago #
Greetings all,
My wordpress site got hacked. I tried to solve this by wiping everything from my server, reinstalling wordpress (using fantistico) and then importing the database backup using phpmyadmin.
Warning: mysql_connect() [function.mysql-connect]: Access denied for user '*****'@'localhost' (using password: YES) in /***/*******/*****/wp-includes/wp-db.php on line 1036
Is the result of doing that :(
I have checked wp-config and none of the db names etc have changed (although I dont remember setting a password).
Any ideas guys and gals?
Joe
Check your database credentials with your hosts.
joey99881
Member
Posted 11 months ago #
Thanks Esmi. I was fully focused on wp-config.php and phpmyadmin. I decided to contact my hosts as you suggested. I went into the database section of my control panel to cut and paste some information for a support ticket. I noticed that wordpress had created a random DB user and given him (her?) full priv's. I deleted this user and created a new one based on my setings in wp-config....AND IT WORKED!
Thanks again :)
Joe.