mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 01:56:03 +00:00
Update cheatsheets
This commit is contained in:
25
mysqlcheck
Normal file
25
mysqlcheck
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user