Title: Error establishing a database connection
Last modified: April 20, 2017

---

# Error establishing a database connection

 *  [mngan](https://wordpress.org/support/users/mngan/)
 * (@mngan)
 * [9 years ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-808/)
 * Hi there, I set up a wordpress blog a year back and connected it to my server.
   It crashed yesterday though and I’m not sure how to get it back up. It says error
   establishing a database connection and after I followed the steps to repair it
   got this in response:
 * monty_users: Table ‘linguacj_wp497.monty_users’ doesn’t exist
    monty_usermeta:
   Table ‘linguacj_wp497.monty_usermeta’ doesn’t exist monty_posts: Table ‘linguacj_wp497.
   monty_posts’ doesn’t exist monty_comments: Table ‘linguacj_wp497.monty_comments’
   doesn’t exist monty_links: Table ‘linguacj_wp497.monty_links’ doesn’t exist monty_options:
   Table ‘linguacj_wp497.monty_options’ doesn’t exist monty_postmeta: Table ‘linguacj_wp497.
   monty_postmeta’ doesn’t exist monty_terms: Table ‘linguacj_wp497.monty_terms’
   doesn’t exist monty_term_taxonomy: Table ‘linguacj_wp497.monty_term_taxonomy’
   doesn’t exist monty_term_relationships: Table ‘linguacj_wp497.monty_term_relationships’
   doesn’t exist monty_commentmeta: Table ‘linguacj_wp497.monty_commentmeta’ doesn’t
   exist
 * Would you know how I would be able to fix this? Thank you so much!
    -  This topic was modified 9 years ago by [mngan](https://wordpress.org/support/users/mngan/).

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [9 years ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-808/#post-9047486)
 * “Error establishing a database connection” means that there is a problem with
   the connection to your database – a problem with the credentials stored in the
   wp-config.php file not matching what mysql expects. – Try reviewing the following
   codex for some guidance: [http://codex.wordpress.org/Common_WordPress_Errors#Error_Establishing_Database_Connection](http://codex.wordpress.org/Common_WordPress_Errors#Error_Establishing_Database_Connection)
 *  [sinip](https://wordpress.org/support/users/sinip/)
 * (@sinip)
 * [9 years ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-808/#post-9047995)
 * So basically now you have database connection but those tables are missing? Doublecheck
   the line with database prefix in your `wp-config.php` file and if it is ok then
   you’ll need a backup of your database to fix it, since it looks like damaged.
   If you don’t have one, contact your hosting provider.
 *  Thread Starter [mngan](https://wordpress.org/support/users/mngan/)
 * (@mngan)
 * [9 years ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-808/#post-9062716)
 * Thank you so much! Would you know how the database prefix line should look in
   the file? 🙂 Don’t have much coding experience so not really sure how everything
   works

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

The topic ‘Error establishing a database connection’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [mngan](https://wordpress.org/support/users/mngan/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-808/#post-9062716)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
