Other operations

You can also perform other operations, such as REBUILD, OPTIMIZE, ANALYZE, and REPAIR statements, for a particular partition, for example:

mysql> ALTER TABLE event_history REPAIR PARTITION p20171009, p20171010;

Get MySQL 8 Cookbook 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.