mysqlcheck Command Examples

Check and repair MySQL tables. More information: https://dev.mysql.com/doc/refman/8.0/en/mysqlcheck.html.

mysqlcheck --check {{table}}

mysqlcheck --check {{table}} --user {{username}} --password {{password}}

mysqlcheck --repair {{table}}

mysqlcheck --optimize {{table}}