1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/mysqlcheck.md
2025-04-22 14:10:15 +00:00

411 B

mysqlcheck

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

  • Check a table:

mysqlcheck --check {{table}}

  • Check a table and provide credentials to access it:

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

  • Repair a table:

mysqlcheck --repair {{table}}

  • Optimize a table:

mysqlcheck --optimize {{table}}