For you are running mysql
How performance? Whether reasonable parameter settings? Whether there is a security risk account settings?
Whether the gains?
The saying goes, it must first of its profits, on a regular basis to your MYSQL database a physical examination is an important means to ensure the safe operation of the database.
Today and share a mysql optimization tool, you can use them to perform a physical examination of your mysql, generate reports awr, let you grasp your database performance situation as a whole.
pt-variable-advisor
pt-variable-advisor MySQL variables can analyze problems and to make recommendations that may arise.
1. Install
在终端执行:
wget https://www.percona.com/downloads/percona-toolkit/3.0.13/binary/redhat/7/x86_64/percona-toolkit-3.0.13-re85ce15-el7-x86_64-bundle.tar
yum install percona-toolkit-3.0.13-1.el7.x86_64.rpm
2. Use
pt-variable-advisor tool is a sub-pt toolset, mainly used to diagnose your parameter settings are reasonable.
在终端执行: pt-variable-advisor localhost --socket /var/lib/mysql/mysql.sock
3. The report analyzes
WARN focus on information of an entry
Daily share a handy gadget, hope to have better resources can be a lot of small partners share exchange, thanks.