Title: Database connection error
Last modified: December 13, 2020

---

# Database connection error

 *  [shashikant91](https://wordpress.org/support/users/shashikant91/)
 * (@shashikant91)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/database-connection-error-53/)
 * Hi Team,
 * Suddenly while accessing my wordpress website there was an error shown “Database
   connection Failed”.
 * I have used the repair database option in the cwp_config file and repaired the
   database. Kindly help me with the below output from the repair function.
 * Some database problems could not be repaired. Please copy-and-paste the following
   list of errors to the WordPress support forums to get additional assistance.
 * wp_users: 45 clients are using or haven’t closed the table properly
    wp_usermeta:
   48 clients are using or haven’t closed the table properly wp_posts: 46 clients
   are using or haven’t closed the table properly wp_comments: 45 clients are using
   or haven’t closed the table properly wp_options: Table is marked as crashed wp_postmeta:
   47 clients are using or haven’t closed the table properly wp_terms: 22 clients
   are using or haven’t closed the table properly wp_term_taxonomy: 44 clients are
   using or haven’t closed the table properly wp_term_relationships: 44 clients 
   are using or haven’t closed the table properly wp_termmeta: 36 clients are using
   or haven’t closed the table properly wp_commentmeta: 40 clients are using or 
   haven’t closed the table properly

Viewing 14 replies - 16 through 29 (of 29 total)

[←](https://wordpress.org/support/topic/database-connection-error-53/?output_format=md)
[1](https://wordpress.org/support/topic/database-connection-error-53/?output_format=md)
2

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-53/page/2/#post-13787811)
 * The mysql server has crashed. (Probably a server config issue that caused it 
   to crash before, corrupting your dB and starting the original issue.) Anyhow,
   contact your host.
 *  Thread Starter [shashikant91](https://wordpress.org/support/users/shashikant91/)
 * (@shashikant91)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-53/page/2/#post-13787819)
 * Hey [@sterndata](https://wordpress.org/support/users/sterndata/)
 * To my surprise it got auto resolved… and my website seems to be opening now properly..
 * Could you suggest me a way round to take care of such issues in the future?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-53/page/2/#post-13787838)
 * Backup, backup, backup. I like the plugin “backwpup” because you can set it to
   backup on a schedule and send the backups to Dropbox or other off-site locations.
 *  Thread Starter [shashikant91](https://wordpress.org/support/users/shashikant91/)
 * (@shashikant91)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-53/page/2/#post-13787862)
 * Ok let me try this plugin currently I am using all in one wp migration.
 * Will backwpup help in restoring also in such cases or only takes backup & keep
   it aside.
 * It says db backup needs mysqli
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-53/page/2/#post-13787874)
 * If your host has a flaky MySQL server setup, the backups may come in handy. Talk
   to your host about mysqli.
 *  Thread Starter [shashikant91](https://wordpress.org/support/users/shashikant91/)
 * (@shashikant91)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-53/page/2/#post-13787882)
 * Hey,
 * One more problem…
 * my website is up but none of my other urls are working Only home page is getting
   opened & other pages are showing below error
 * Not Found
 * The requested URL was not found on this server.
 * Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument
   to handle the request.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-53/page/2/#post-13787887)
 * Soemthing’s wrong with your .htaccess file or how the web server is processing
   it.. Go to SETTINGS->PERMALINKS and click “save” to reset things. Sometimes that
   helps. If not, contact your host.
 *  Thread Starter [shashikant91](https://wordpress.org/support/users/shashikant91/)
 * (@shashikant91)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-53/page/2/#post-13787917)
 * You are a gem [@sterndata](https://wordpress.org/support/users/sterndata/) and
   a god for now at this point of time. I just saved the permalink settings and 
   it just started working like a flash…
 * god what’s happening with my website..
 * I could also observe few tables which are extra in my database which is in use
   which were not present earlier.
 *  Thread Starter [shashikant91](https://wordpress.org/support/users/shashikant91/)
 * (@shashikant91)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-53/page/2/#post-13795744)
 * [@sterndata](https://wordpress.org/support/users/sterndata/)
 * One last help. Now my website is Okay but somehow the wordpress dashboard has
   become very slow.
 * Can I try optimizing the db from phpmyadmin? Will this help? or should I contact
   my hosting company for this?
 * I hope the data will not be disturbed if at all I am doing an optimize from phpmyadmin
 * Thanks
    Shashikant
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-53/page/2/#post-13797974)
 * You can try optimizing; I think you’re on an underpowered hosting platform.
 *  Thread Starter [shashikant91](https://wordpress.org/support/users/shashikant91/)
 * (@shashikant91)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-53/page/2/#post-13797987)
 * Huh!
 * You are right but I am on GODADDY…..no DADDY for that 😛
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-53/page/2/#post-13798012)
 * Contact GoDaddy support.
 *  Thread Starter [shashikant91](https://wordpress.org/support/users/shashikant91/)
 * (@shashikant91)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-53/page/2/#post-13798018)
 * But just to reconfirm am I safe without loosing the data when I optimize the 
   database?
 * Just wanted to check before I approach them. If optimizing doesn’t help I have
   no other way except to contact GoDaddy Support
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-53/page/2/#post-13798058)
 * Yes, you’re safe.

Viewing 14 replies - 16 through 29 (of 29 total)

[←](https://wordpress.org/support/topic/database-connection-error-53/?output_format=md)
[1](https://wordpress.org/support/topic/database-connection-error-53/?output_format=md)
2

The topic ‘Database connection error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 29 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/database-connection-error-53/page/2/#post-13798058)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
