db:maintain:check-tables
Check database tables.
tip
Use this command for regular database health checks or before/after upgrades to ensure table integrity. The --repair
option can help fix issues with MyISAM tables.
n98-magerun2.phar db:maintain:check-tables [options]
Options:
Option | Description |
---|---|
--type[=TYPE] | Check type (one of QUICK, FAST, MEDIUM, EXTENDED, CHANGED) [default: "MEDIUM"] |
--repair | Repair tables (only MyISAM) |
--table[=TABLE] | Process only given table (wildcards are supported) |
--format[=FORMAT] | Output Format. One of [csv,json,json_array,yaml,xml] |