/opt/APG/Databases/MySQL/Default/bin/mysqlcheck --check --extend --auto --repair --use-frm --quick --check-only-changed --verbose --host=127.0.0.1 --port=53306 -p --user=root <database>
Password is watch4net
Example
To check and automatically repair all tables in the 'apg' database:/opt/APG/Databases/MySQL/Default/bin/mysqlcheck --check --extend --auto --repair --use-frm --quick --check-only-changed --verbose --host=127.0.0.1 --port=53306 -p --user=root apg