WordPress.org

Forums

Error establishing a database connection error (6 posts)

  1. Mn3MoN1C
    Member
    Posted 5 years ago #

    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/

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Do you have a recent database backup?

  3. Mn3MoN1C
    Member
    Posted 5 years ago #

    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

  4. esmi
    Forum Moderator
    Posted 5 years ago #

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

  5. Mn3MoN1C
    Member
    Posted 5 years ago #

    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?

  6. esmi
    Forum Moderator
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic