1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 16:42:10 +02:00
tldr/pages/common/mysqlcheck.md
Pierre Rudloff 8e2a63cce2
mysqlcheck: add page (#10154)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-05-09 04:03:33 +02:00

415 B

mysqlcheck

Check and repair MySQL tables. More information: https://dev.mysql.com/doc/refman/8.0/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}}