Title: Database Repair Problems
Last modified: October 23, 2024

---

# Database Repair Problems

 *  [basska](https://wordpress.org/support/users/basska/)
 * (@basska)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/database-repair-problems-3/)
 * Hi, I have attempted a repair on my database after encountering an ‘Error establishing
   a database connection’ page that has locked me out of wordpress editor and accessing
   our website. The repair has come up unsuccessful and has directed me to find 
   answers here as to how to fix the following issues:
 * wp_users: Table ‘forgepre_mainsite.wp_users’ doesn’t exist
   wp_usermeta: Table‘
   forgepre_mainsite.wp_usermeta’ doesn’t existwp_posts: Table ‘forgepre_mainsite.
   wp_posts’ doesn’t existwp_postmeta: Table ‘forgepre_mainsite.wp_postmeta’ doesn’t
   existwp_terms: Table ‘forgepre_mainsite.wp_terms’ doesn’t existwp_term_taxonomy:
   Table ‘forgepre_mainsite.wp_term_taxonomy’ doesn’t existwp_term_relationships:
   Table ‘forgepre_mainsite.wp_term_relationships’ doesn’t existwp_termmeta: Table‘
   forgepre_mainsite.wp_termmeta’ doesn’t exist
 * Any help/pointers would be appreciated.

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

 *  [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/database-repair-problems-3/#post-18091036)
 * Hi [@basska](https://wordpress.org/support/users/basska/),
 * The above points the mentioned tables are missing. Could you please check by 
   accessing the database to ensure the listed tables are indeed present?
 * If the tables are present in the database, then most probably the $table_prefix
   is incorrect inside the wp-config.php file.
 * You’ll need to update the $table_prefix variable in the wp-config.php with correct
   table prefix.
 * I hope the above helps in moving forward.
 * Kind Regards,
 * Nithin
 *  Thread Starter [basska](https://wordpress.org/support/users/basska/)
 * (@basska)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/database-repair-problems-3/#post-18092366)
 * Hi, I can’t see the above tables in the database but I am also not 100% sure 
   where I should be looking for them. Do you have any ideas?
 * If they are not present, how should I go about making them present in the correct
   way?
 * Thank you.
 *  [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * (@wpmudevsupport13)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/database-repair-problems-3/#post-18093123)
 * Hi [@basska](https://wordpress.org/support/users/basska/)
 * At this point, it will be good to speak with your hosting support and ask is 
   there any backup of the site that can be restored. For example from 2 days ago
   or from last week, depending on how many changes you have made during that time,
   and before this happened:
 * > I have attempted a repair on my database after encountering an ‘Error establishing
   > a database connection’
 * If this is some WooCommerce site, it will be good to compare email dates with
   orders to not lose any orders from the database when you restore the backup from
   a specific date.
 * Kind Regards,
   Nithin

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

The topic ‘Database Repair Problems’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/database-repair-problems-3/#post-18093123)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
