Bulk Repair All MySQL Tables in DirectAdmin Panel

With the code below, we can check and repair all tables on the server in bulk.

mysqlcheck -uda_admin -p`grep "^passwd=" /usr/local/directadmin/conf/mysql.conf | cut -d= -f2` --auto-repair --optimize --all-databases