To check all the tables in a particular database, don’t specify the table name. Just specify the database name.
The following example checks all the tables in the db_name database.
#mysqlcheck -c db_name -u root -p
Enter password:
db_name.JBPM_ACTION OK
db_name.JBPM_BYTEARRAY OK
db_name.JBPM_BYTEBLOCK OK
db_name.JBPM_COMMENT OK
db_name.JBPM_DECISIONCONDITIONS OK
db_name.JBPM_DELEGATION OK
db_name.JBPM_EVENT OK
Check a Specific Table in a Database
If your application gives an error message saying that a specific table is corrupted, execute the mysqlcheck command to check that one table.
The following example checks employee table in db_name database.
# mysqlcheck -c db_name table_name -u root -p
Enter password:
db_name.table_name OK
The following example checks all the tables in the db_name database.
#mysqlcheck -c db_name -u root -p
Enter password:
db_name.JBPM_ACTION OK
db_name.JBPM_BYTEARRAY OK
db_name.JBPM_BYTEBLOCK OK
db_name.JBPM_COMMENT OK
db_name.JBPM_DECISIONCONDITIONS OK
db_name.JBPM_DELEGATION OK
db_name.JBPM_EVENT OK
Check a Specific Table in a Database
If your application gives an error message saying that a specific table is corrupted, execute the mysqlcheck command to check that one table.
The following example checks employee table in db_name database.
# mysqlcheck -c db_name table_name -u root -p
Enter password:
db_name.table_name OK