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?