MySQL cheatsheet
Show MySQL configuration settings
mysql> SHOW VARIABLES;
Show MySQL running threads
mysql > SHOW PROCESSLIST;
Check the status of the tables of a database
$ mysqlcheck -c <database>
Lots of useful sysadmin information
Show MySQL configuration settings
mysql> SHOW VARIABLES;
Show MySQL running threads
mysql > SHOW PROCESSLIST;
Check the status of the tables of a database
$ mysqlcheck -c <database>
Leave a Reply