• imdtracy

    (@imdtracy)


    My website which has been online for years, suddenly came up with an “error establishing database connection”.

    I added this line to my wp-config.php file:
    define(‘WP_ALLOW_REPAIR’, true);
    and proceeded to do a database repair. I got a message that several tables were not okay and could not be repaired. What does this mean? The site did come back after I ran this database repair, but is my database corrupted? What should I do at this point?

    wp_users: 3 clients are using or haven’t closed the table properly
    wp_usermeta: 19 clients are using or haven’t closed the table properly
    wp_posts: 20 clients are using or haven’t closed the table properly
    wp_comments: 19 clients are using or haven’t closed the table properly
    wp_links: 1 client is using or hasn’t closed the table properly
    wp_options: Table is marked as crashed
    wp_postmeta: 20 clients are using or haven’t closed the table properly
    wp_terms: 1 client is using or hasn’t closed the table properly
    wp_term_taxonomy: 14 clients are using or haven’t closed the table properly
    wp_term_relationships: 13 clients are using or haven’t closed the table properly
    wp_commentmeta: 19 clients are using or haven’t closed the table properly

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    See if you can repair the database via phpMyAdmin instead of from within WordPress.

    fadimckean

    (@fadimckean)

    I have the same issue, without any reason got “Error establishing a database connection”

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    fadickean: you have the same symptom but perhaps not the same problem. Please start a new topic for your issue. thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Suddenly got an “error establishing database connection”’ is closed to new replies.