• Hi!

    I have a website the last 6 years without problems. Yesterday i check it like always and: Error establishing a database connection. I didn’t touch anything. wp-config.php is the same.

    I restored the DB with a MediaTemple Emergency stuff but nothing happened.

    (I know my WP version is quite old). The site is: http://www.hambrientos.cl

    ¿What could happened? :S

Viewing 3 replies - 1 through 3 (of 3 total)
  • Database connection can be a number of things:

    1. The server no longer has permission to connect to database server (if on separate machines)
    2. The database server url is no longer valid (DNS changes)
    3. Database has disappeared, been deleted or been renamed
    4. Database permissions have been removed

    Turn on debugging in wp_config.php to see what it is trying to do: https://codex.wordpress.org/Debugging_in_WordPress

    Thread Starter bioniczoid

    (@bioniczoid)

    That’s weird. I’m using Media Temple i never had this kind of problem.
    I realized that another site that i host in Media Temple has the SAME problem.

    How the DB permissions changed? (if that is the problem)

    Impossible to diagnose without analysing logs and database.
    the database user needs permission to access the database – make sure the user has full access (unlikely but still a remote possibility)
    Priority one should be to get it working again – when you find the problem, you’ll most likely identify the reason.

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