Mytop use to introduce the Mysql real-time monitoring tool _mysql

Source: Internet
Author: User
Mytop is similar to the Linux top tool, which enables real-time monitoring of performance information for MySQL servers.

Installation method

1. Installation dependence
Copy Code code as follows:

# CPAN
# cpan > Install DBI
# cpan > Install Term::readkey
# cpan > Install Dbd::mysql
# CPAN > Exit

2. Download and install Mytop
Copy Code code as follows:

Cd/tmp
wget http://jeremy.zawodny.com/mysql/mytop/mytop-1.6.tar.gz
Tar xzf mytop-1.6.tar.gz
CD mytop-1.6
Perl makefile.pl
Make
Make install


How to use
Grammar:

Mytop-u <REMOTE_USERNAME>-P <PASSWORD>-H <MYSQL_SERVER_IP>-D <DATABASE>
Remote_username:mysql User Name
Password:mysql Password
Mysql_server_ip:mysql Server IP
Database: Names of databases to monitor
Example:

# mytop-u root-p password-h 192.168.0.2-d CentOS
You can also write these parameters to the file ~/.mytop in the following format:

User= your MySQL Users
pass= your MySQL password.
Host=localhost
db= the name of the database you want to monitor.
Delay=5
port=3306
Socket=/var/lib/mysql/mysql.sock
Batchmode=0
Header=1
Color=1
Idle=1
Detailed instructions for use can be performed by man Mytop.

Author Zhu Maohai
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.