WordPress.org

Support

Support » How-To and Troubleshooting » Database Connection Error

Database Connection Error

  • Trying to access my site, I was getting a Database Connection Error (not sure if that’s the exact wording – I can’t get back to it now).

    I got the page stating, “allow use of this page to automatically repair database problems, please add the following line to your wp-config.php file. Once this line is added to your config, reload this page.

    define(‘WP_ALLOW_REPAIR’, true);”

    I added the line, ran the repair (not repair and optimize) and received the following report:

    wp_users: 1 client is using or hasn’t closed the table properly
    wp_usermeta: 4 clients are using or haven’t closed the table properly
    wp_options: Table is marked as crashed
    wp_postmeta: 2 clients are using or haven’t closed the table properly
    wp_term_taxonomy: 1 client is using or hasn’t closed the table properly
    wp_term_relationships: 1 client is using or hasn’t closed the table properly
    wp_commentmeta: 5 clients are using or haven’t closed the table properly

    Any ideas on how to proceed?

    Thanks,
    -Robert

Viewing 1 replies (of 1 total)
  • Well, I got a bit stupid, decided to click “repair” again and see what happens. This time around it tells me everything has been repaired and all seems to be working ok for now.

    Fingers crossed it stays that way.

    Thanks,
    -Robert

Viewing 1 replies (of 1 total)
  • The topic ‘Database Connection Error’ is closed to new replies.
Skip to toolbar