MySQL repair corruption

for db:

mysqlcheck -uadmin -p$(cat /etc/psa/.psa.shadow ) –databases databasename –repair

for table:

check table tablename;

repair table tablename;

repair can lose data so a restore from backup may be necessary.

You can leave a response, or trackback from your own site.

Leave a Reply