Page 1 of 1

check_mysql has determined that there are corrupted database tables

Posted: Wed Dec 28, 2016 8:06 am
by chris ben
I am getting the below alert from the server. Please help.

check_mysql has determined that there are corrupted database tables
cPanel & WHM has determined that the following database tables are corrupt:

Database Error
eximstats /usr/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect

Re: check_mysql has determined that there are corrupted database tables

Posted: Wed Dec 28, 2016 8:17 am
by Martin
Login to server via SSH and run the below command to repair the db

mysqlcheck -r eximstats

mysqlcheck -r -A (to repair all dbs)

=============================
Martin
Linux Support Engineer.
Nixtree Solutions
Managed Full Server Backups
https://www.nixtree.com/managed-backups.php
Follow us on : https://twitter.com/nixtree