Title: Error Database Connection
Last modified: August 22, 2016

---

# Error Database Connection

 *  [abidbd](https://wordpress.org/support/users/abidbd/)
 * (@abidbd)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-database-connection-1/)
 * Hi,
    All was okay on technosway.com but suddenly I start getting a warning message
   like error database connection. Then I googled it and found a solution to repair
   it. Then I got the following message, ts_usermeta: 1 client is using or hasn’t
   closed the table properly ts_posts: 3 clients are using or haven’t closed the
   table properly ts_options: Table is marked as crashed ts_postmeta: 3 clients 
   are using or haven’t closed the table properly ts_terms: 1 client is using or
   hasn’t closed the table properly ts_term_taxonomy: 1 client is using or hasn’t
   closed the table properly ts_term_relationships: 1 client is using or hasn’t 
   closed the table properly ……….
 * Can anyone please clarify me all these? I am new to wordpress. Why these happened
   and how to avoid it in future? I have a developer who worked on local server 
   and then upload it in live server (arvixe), is it can be he did any mistake or
   something. Please clarify me if this is normal issue.
    Also, when repairing, 
   I found two option, one is Repair and other is Repair and Optimized. I clicked
   Repair. But now I also want to optimize if it is helpful. But now how I can optimize
   it?
 * Warmly regards,
    Abid H.

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-database-connection-1/#post-5268400)
 * > I start getting a warning message like error database connection. Then I googled
   > it and found a solution to repair it.
 * How did you “repair” it?
 * you may have toasted your database.
 * Do you have a good backup of your database?
 *  Thread Starter [abidbd](https://wordpress.org/support/users/abidbd/)
 * (@abidbd)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-database-connection-1/#post-5268405)
 * I added define(‘WP_ALLOW_REPAIR’, true); in wp-config.php file, and then went
   to admin login page, it redirected me to the repair page. Then I clicked Repair
   button and it start repairing the database. After it, it shows me a message about
   the issue and asked me to post the message (as stated in first post here) in 
   wordpress support forum for further clarification or help.
 * Do you have any idea about it? Or anyone else?
 *  Thread Starter [abidbd](https://wordpress.org/support/users/abidbd/)
 * (@abidbd)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-database-connection-1/#post-5268438)
 * Also.. I am seeing new database issue again.. [https://www.dropbox.com/s/amz1axg5urn5xcr/WordPress%20%E2%80%BA%20Error.png?dl=0](https://www.dropbox.com/s/amz1axg5urn5xcr/WordPress%20%E2%80%BA%20Error.png?dl=0)
 * Please help me out..

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

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [abidbd](https://wordpress.org/support/users/abidbd/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/error-database-connection-1/#post-5268438)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
