WordPress.org

Support

Support » How-To and Troubleshooting » Error establishing a database connection error

Error establishing a database connection error

  • After getting my wordpress website up and running, I was changing the website description. When I clicked save, it gave me this error “Error establishing a database connection”. I tried going to the admin page and it asked me if I wanted to repair the db. I repaired it through wordpress and to no avail. It said the tables were “ok” but still didn’t work. So I tried repairing the tables through phpmyadmin and still no good. I checked the config file with the database and it is the same, which is what I assumed since the install was fine in the first place. Also I contacted my host and they said they tested the database and that it seems fine. Any idea what I can do to try to restore it? Am I out of luck? 🙁

    The link to the site is http://wfaworldwide.com/justNeph/

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    @esmi

    Forum Moderator

    Do you have a recent database backup?

    No, I had set up the website maybe 2 days ago so I didn’t think to back it up, but I did make some pages and install plugins and what not

    esmi

    @esmi

    Forum Moderator

    Double check your wp-config.php file settings for the database and host names.

    I just double checked it and it’s the same values. Is there anything else I can do? I can still make a backup through phpmyadmin. Could I save the query file from there and somehow just make a new db and place the tables in there?

    esmi

    @esmi

    Forum Moderator

    First try:
    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-related problems.

    resetting the plugins folder by FTP or phpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error establishing a database connection error’ is closed to new replies.