How can I rebuild indexes and update stats in MySQL innoDB?

The Solution to How can I rebuild indexes and update stats in MySQL innoDB? is


This is done with

ANALYZE TABLE table_name;

Read more about it here.

ANALYZE TABLE analyzes and stores the key distribution for a table. During the analysis, the table is locked with a read lock for MyISAM, BDB, and InnoDB. This statement works with MyISAM, BDB, InnoDB, and NDB tables.

~ Answered on 2015-05-05 11:28:27


Most Viewed Questions: