The most efficient way I've found is to use the mysqlcheck
command line mysqlcheck
:
mysqlcheck -u mydbuser -p mydbname
This will cause mydbname
to be mydbuser
using the mydbuser
user and cause the password for that user. Then it checks each table in the specified database.
See https://dev.mysql.com/doc/refman/5.7/en/mysqlcheck.html
Note: this is not how phpMyAdmin does this, so it is not a strict answer to the original question, but I put it here because Google sends mysql show crashed tables
requests here.
source share