#145 - Table './database_name/table_name' is marked as crashed and should be repair

I was getting below error while accessing one site -
Error in establishing database connection.

Solution :-

1. Make sure SQL service is running on your server.

2. Make sure that you've set correct password for database user in your configuration file.


3. Make sure you've assigned correct user and privileges to database.


4. If you're still receiving the error then please check the error logs. If you're getting error message as below -
#145 - Table './database_name/table_name' is marked as crashed and should be repair.
Then you'll need to repair the database from -

1. cPanel >> MySQL Databases >> Repair Database
OR

2. WHM >> SQL Services >> Repair a MYSQL Database >> Select database >> Repair Database

That did the trick for me!

Note :- If you're unable to get the error logs using 'tail -f /usr/local/apache/logs/error_log' then check the MySQL error logs using 'tail -f /var/lib/mysql/hostname.err'


  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Failed to send your message. Please try later or contact the administrator by another method - WordPress Contact Form is not working

While sending email from WordPress's contact form, I was getting below error -Failed to send your...

How to access phpMyAdmin without login to cPanel?

Many times you will get the question from client that -I want to provide access the phpMyAdmin to...

Response: 421 Home directory not available - aborting Error: Could not connect to server

While connecting to hosting service using FTP client, I was getting below error message...

Error: Website not found. If the website was recently renamed or moved please edit the install to save the new location (Files & Tables tab).

I was getting below error when opening installatron for all installs - Error message - Error:...

ERROR: There was an error connecting to the server, Please verify the settings

While updating the WordPress plugin using FTP client I was getting the error as -'ERROR: There...

Powered by WHMCompleteSolution