Title: Facing Database error while accessing site
Last modified: June 12, 2019

---

# Facing Database error while accessing site

 *  [rizwan65](https://wordpress.org/support/users/rizwan65/)
 * (@rizwan65)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/facing-database-error-while-accessing-site/)
 * Hi,
    I am facing Databas Connection error while accessing my site And while accessing
   wp-admin i was suggested to add define(‘WP_ALLOW_REPAIR’, true); in wp-config.
   php
 * So I did
    But after the repair process I was suggested to post this problem in
   the forum with the errors listed below
 * Could you please help
 * Regards
    Rizwan
 * wp_users: 2 clients are using or haven’t closed the table properly
    wp_usermeta:
   2 clients are using or haven’t closed the table properly wp_posts: 19 clients
   are using or haven’t closed the table properly wp_options: Table is marked as
   crashed wp_postmeta: 19 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

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

 *  [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * (@jnashhawkins)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/facing-database-error-while-accessing-site/#post-11629113)
 * The easy fix is to restore your database from your backups if the repair didn’t
   fix things.
    -  This reply was modified 6 years, 11 months ago by [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/).
 *  [eze008](https://wordpress.org/support/users/eze008/)
 * (@eze008)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/facing-database-error-while-accessing-site/#post-11629210)
 * In order to make it easier for people to answer and help please describe the 
   situation of the site before the failed database connection. Did you make any
   changes before the failed connection? Troubleshoot this problem with all plugins
   disabled. In your hosting cpanel reset the password for the database user. Then
   connect the user to the database. Then access the site using incognito browser.
   sometimes you actually do not have an error on the site rather the cache in the
   browser could be stuck on the error screen when trying to connect. Using incognito
   mode will get passed that.

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

The topic ‘Facing Database error while accessing site’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [eze008](https://wordpress.org/support/users/eze008/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/facing-database-error-while-accessing-site/#post-11629210)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
