Title: Error establishing a database connection
Last modified: August 18, 2019

---

# Error establishing a database connection

 *  [ngocsangdanang](https://wordpress.org/support/users/ngocsangdanang/)
 * (@ngocsangdanang)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-906/)
 * wp_usermeta: 3 clients are using or haven’t closed the table properly
    wp_posts:
   2 clients are using or haven’t closed the table properly wp_options: Table is
   marked as crashed wp_postmeta: 9 clients are using or haven’t closed the table
   properly Please support troubleshooting problems to help me. Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-establishing-a-database-connection-906%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Jazz](https://wordpress.org/support/users/jraborar/)
 * (@jraborar)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-906/#post-11842358)
 * Hi
 * Based from the information you provided, I suggest that you try following:
 * 1. Create and assign a new Database user from your cPanel
    2. You can also try
   repairing the database from your cPanel
 * I suggest that you reach out to your web hosting company for further assistance
   if you do not know how to do any of the steps above.
 * Cheers!
 *  Thread Starter [ngocsangdanang](https://wordpress.org/support/users/ngocsangdanang/)
 * (@ngocsangdanang)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-906/#post-11842365)
 * I have tried the tool to fix the wordpress database that is currently accessible.
   
   However, it still happens next time. Want me to change the new username and assign
   it to the database?
 *  [Jazz](https://wordpress.org/support/users/jraborar/)
 * (@jraborar)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-906/#post-11842369)
 * Hi
 * You can also check this link
 * [https://wordpress.org/support/article/common-wordpress-errors/#error-establishing-database-connection](https://wordpress.org/support/article/common-wordpress-errors/#error-establishing-database-connection)
 *  Thread Starter [ngocsangdanang](https://wordpress.org/support/users/ngocsangdanang/)
 * (@ngocsangdanang)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-906/#post-11842418)
 * Thank you very much, I will try
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-906/#post-11842805)
 * Try repairing your DB with PHPMYADMIN
 * [https://www.a2hosting.com/kb/cpanel/cpanel-database-features/optimizing-and-repairing-mysql-databases-with-phpmyadmin](https://www.a2hosting.com/kb/cpanel/cpanel-database-features/optimizing-and-repairing-mysql-databases-with-phpmyadmin)

Viewing 5 replies - 1 through 5 (of 5 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/)
 * 5 replies
 * 3 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-906/#post-11842805)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
