Linux easy to use SQL tool (a)

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.

mysqltuner.pl

This is a common mysql database performance diagnostic tools, including rationality log files, storage engine performance analysis of safety recommendations and the main check parameter settings. Against potential problems, make recommendations for improvement, mysql optimization is a good helper.

1. Download

在终端执行:wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl

2. Use

在终端执行:
./mysqltuner.pl --socket /var/lib/mysql/mysql.sock
 >> MySQLTuner 1.7.4 - Major Hayden <[email protected]>
 >> Bug reports, feature requests, and downloads at http://mysqltuner.com/
 >> Run with '--help' for additional options and output filtering
[--] Skipped version check for MySQLTuner script
Please enter your MySQL administrative login: root
Please enter your MySQL administrative password: [OK] Currently running supported MySQL version 5.7.23
[OK] Operating on 64-bit architecture

3. The report analyzes

Important concern [!!] (exclamation mark in brackets item)

Daily share a handy gadget, hope to have better resources can be a lot of small partners share exchange, thanks.

Released seven original articles · won praise 7 · views 265

Guess you like

Origin blog.csdn.net/weixin_44145894/article/details/105146961