After running mysqltuner, I received this output:
Total fragmented tables: 284
To defragment I tried these:
1. ALTER TABLE tbl_name ENGINE=INNODB
2. Another way to perform a defragmentation operation is to use mysqldump to dump the table to a text file, drop the table, and reload it from the dump file.
Both of the methods are described in MySQL documentation.
But none of the methods helped. Mysqltuner still says that tables are fragmented.
Note: innodb_file_per_table is OFF in my configurations.
How can I defragment my InnoDB tables?
ALTER TABLE tbl_name ENGINE=INNODB
Is the only way to defragment a innodb table.
ALGORITHM=INPLACE can help us to do it online.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With