Name
ANALYZE TABLE
Syntax
ANALYZE TABLE table1, table2, ..., tablen
Description
Acquires a read lock on the table and performs an analysis on it for MyISAM and BDB tables. The analysis examines the key distribution in the table. It returns a result set with the following columns:
-
Table
The name of the table.
-
Op
The value
analyze
.-
Msg_type
One of
status
,error
, orwarning
.-
Msg_text
The message resulting from the analysis.
Get Managing & Using MySQL, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.