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

21 lines
411 B
Markdown
Raw Normal View History

# 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}}`