MySQL OPTIMIZE tables?
mysqlcheck -u -p[password] -o [database name]
Related Posts
Upgrading MySQL 5.5 to MySQL 5.6 on Ubuntu 14.04 LTS
Make sure you backup your mysql databases first! sudo apt-get remove mysql-server sudo apt-get autoremove…
10 MySQL settings to tune after installation
https://www.percona.com/blog/2014/01/28/10-mysql-settings-to-tune-after-installation/