Title: Error Establishing Connection with Database
Last modified: December 20, 2017

---

# Error Establishing Connection with Database

 *  [tagdesigner](https://wordpress.org/support/users/tagdesigner/)
 * (@tagdesigner)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-connection-with-database-2/)
 * I believe I updated to the latest WP version when I was trying to fix a hacked
   site (defaced). Host rolled site back to an earlier version and 3 other sites
   are fine but this one gives me this error:
    wp_users: Table ‘myjasper_nan.wp_users’
   doesn’t exist wp_usermeta: Table ‘myjasper_nan.wp_usermeta’ doesn’t exist wp_posts:
   Table ‘myjasper_nan.wp_posts’ doesn’t exist wp_links: Table ‘myjasper_nan.wp_links’
   doesn’t exist wp_options: Table ‘myjasper_nan.wp_options’ doesn’t exist wp_postmeta:
   Table ‘myjasper_nan.wp_postmeta’ doesn’t exist wp_terms: Table ‘myjasper_nan.
   wp_terms’ doesn’t exist wp_term_taxonomy: Table ‘myjasper_nan.wp_term_taxonomy’
   doesn’t exist wp_term_relationships: Table ‘myjasper_nan.wp_term_relationships’
   doesn’t exist wp_termmeta: Table ‘myjasper_nan.wp_termmeta’ doesn’t exist
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-establishing-connection-with-database-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-connection-with-database-2/#post-9798230)
 * Try repairing the database.
 * Review this codex for some instructions:
    [https://codex.wordpress.org/FAQ_Troubleshooting#How_do_you_repair_a_MySQL_database_table.3F](https://codex.wordpress.org/FAQ_Troubleshooting#How_do_you_repair_a_MySQL_database_table.3F)
 *  Thread Starter [tagdesigner](https://wordpress.org/support/users/tagdesigner/)
 * (@tagdesigner)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-connection-with-database-2/#post-9798267)
 * I did try first adding the code to the wp-config file to have the database repair
   from the login page. That didn’t work. Then i went to cpanel to repair the database&
   that didn’t help either. I don’t understand how the connection can be lost if
   everything in the wp-config file looks okay

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

The topic ‘Error Establishing Connection with Database’ is closed to new replies.

## Tags

 * [Database Error](https://wordpress.org/support/topic-tag/database-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [tagdesigner](https://wordpress.org/support/users/tagdesigner/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-connection-with-database-2/#post-9798267)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
