mysqladmin -uroot -p12345678 ext | grep Innodb_buffer_pool_reads mysqladmin: [Warning] Using a password on the command line interface can be insecure. | Innodb_buffer_pool_reads | 31763701 |
1 2 3
mysqladmin -uroot -p12345678 ext | grep Innodb_buffer_pool_read_requests mysqladmin: [Warning] Using a password on the command line interface can be insecure. | Innodb_buffer_pool_read_requests | 866018530 |
如果想要查看多次的取值,并计算间隔的差值(-i 1间隔为1s)(-r 获取前后两个值之间的差值)
1 2 3 4 5 6 7
mysqladmin -uroot -p12345678 -ri1 ext | grep Innodb_buffer_pool_reads mysqladmin: [Warning] Using a password on the command line interface can be insecure. | Innodb_buffer_pool_reads | 31763701 | | Innodb_buffer_pool_reads | 0 | | Innodb_buffer_pool_reads | 0 | | Innodb_buffer_pool_reads | 0 | | Innodb_buffer_pool_reads | 0 |
1 2 3 4 5 6 7 8 9
mysqladmin -uroot -p12345678 -ri1 ext | grep Innodb_buffer_pool_read_requests mysqladmin: [Warning] Using a password on the command line interface can be insecure. | Innodb_buffer_pool_read_requests | 866018530 | | Innodb_buffer_pool_read_requests | 0 | | Innodb_buffer_pool_read_requests | 0 | | Innodb_buffer_pool_read_requests | 0 | | Innodb_buffer_pool_read_requests | 0 | | Innodb_buffer_pool_read_requests | 0 | | Innodb_buffer_pool_read_requests | 0 |