#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

How to reset SSH port back to default port 22?

In some situations most of us may come across a problem that we are able to log into the WHM but...

How to setup the root login alert notification email?

Its very important to keep a check on your servers and who logs into the server, From security...

How to enable Open SSL on WHM?

Before enabling open SSL, you can check whether it is already enabled on your server. Please fire...

How to install mod_pagespeed on WHM?

'mod_pagespeed' is module of Apache which is nothing but plugin which is used for compressing the...

How to enable Hot Link Protection in cPanel?

To avoid other sites to use your website's bandwidth, you can enable the hot link protection....

Powered by WHMCompleteSolution