A one-liner to optimize all MySQL tables, in all databases. Be advised that running optimize on InnoDB does a ‘recreate and analyze’. Run as root in the example below.
mysqlcheck -o -u root -p --all-databases
Engage your cerebral cortex
A one-liner to optimize all MySQL tables, in all databases. Be advised that running optimize on InnoDB does a ‘recreate and analyze’. Run as root in the example below.
mysqlcheck -o -u root -p --all-databases