Last active
September 13, 2016 01:30
-
-
Save ts-3156/0a20e65af503729c0003 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
mysql:bind -s "^xd" "SHOW DATABASES;" | |
mysql:bind -s "^xt" "SHOW TABLES;" | |
mysql:bind -s "^gv" "SHOW GLOBAL VARIABLES LIKE '%%';" | |
mysql:bind -s "^gs" "SHOW GLOBAL STATUS LIKE '%%';" | |
mysql:bind -s "^xp" "SHOW PROCESSLIST;" | |
mysql:bind -s "^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;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment