github上go语言开发的MySQL运行性能监控脚本,试了一下还不错,类似于linux top:
源代码地址:https://github.com/dblucyne/dodba_tools
运行结果如下:
[root@zttang dodba_tools]# ./doDBA -innodb; ./doDBA -mysql; ./doDBA -mytop
DoDBA tools on host 127.0.0.1
---------+------innodb--rows-----+---------innodb--pages--------+-------innodb--data-------