Mysql real-time monitoring tool mytop usage introduction bitsCN. commysql real-time monitoring tool mytop usage introduction mytop is similar to linux top tool, which can monitor mysql server performance information in real time. Installation method
1. install dependency # cpan> install DBI # cpan> install Term: ReadKey # cpan> install DBD: mysql # cpan> exit
2. download and install mytop cd/tmpwget http://jeremy.zawodny.com/mysql/mytop/mytop-1.6.tar.gztar xzf mytop-1.6.tar.gzcd mytop-1.6perl Makefile. PLmakemake install using method syntax: mytop-u -P -H -D REMOTE_USERNAME: mysql User name PASSWORD: mysql PASSWORD MYSQL_SERVER_IP: mysql server ipDATABASE: example of the name of the database to be monitored: # mytop-u root-p password-h 192.168.0.2-d centos can also write these parameters to the file ~ /. Mytop, in the following format: user = your mysql user pass = your mysql Password host = localhostdb = The name of the database you want to monitor delay = 5 port = 3306 socket =/var/lib/mysql. sockbatchmode = 0 header = 1 color = 1 idle = 1 Detailed instructions can be obtained by running man mytop. Author: Zhu Mahai bitsCN.com
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.