Created
August 28, 2014 17:31
-
-
Save juniorplenty/ddb00710fc318f7e58ab to your computer and use it in GitHub Desktop.
Mysql-Fu
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
SELECT CONCAT(FORMAT(DataPages*100.0/TotalPages,2),' %') BufferPoolDataPercentage FROM | |
(SELECT variable_value DataPages FROM information_schema.global_status | |
WHERE variable_name = 'Innodb_buffer_pool_pages_data') A, | |
(SELECT variable_value TotalPages FROM information_schema.global_status | |
WHERE variable_name = 'Innodb_buffer_pool_pages_total') B; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment