Last active
September 13, 2016 01:40
-
-
Save ts-3156/ac4e3c6e8c6f0c497a31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$if mysql | |
"\C-xd": "SHOW DATABASES;" | |
"\C-xt": "SHOW TABLES;" | |
"\C-gv": "SHOW GLOBAL VARIABLES LIKE '%%';" | |
"\C-gs": "SHOW GLOBAL STATUS LIKE '%%';" | |
"\C-xp": "SHOW PROCESSLIST;" | |
"\C-xs": "SELECT table_name, engine, table_rows as tbl_rows, avg_row_length as rlen, floor((data_length+index_length)/1024/1024) as allMB, floor((data_length)/1024/1024) as dMB, floor((index_length)/1024/1024) as iMB FROM information_schema.tables WHERE table_schema=database() ORDER BY (data_length+index_length) DESC;" | |
$endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment