Forums

[resolved] Can't connect to database after full reinsatll (3 posts)

  1. 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

  2. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    Check your database credentials with your hosts.

  3. 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.

Reply

You must log in to post.

About this Topic