Packet capture tool MySQL: MySQL Sniffer and performance optimization

MySQL MySQL Sniffer is a protocol based capture tool, real-time fetch requests MySQLServer end, and formatted output. Outputting content package includes access time, access to the user, source IP, access Database, takes command, returns the number of rows of data, and so the statement is executed. There batch fetching multiple ports, running in the background, and so many ways to use split logs, convenient operation, the output friendly.

Atlas also applies to crawl end of the request, the odd tiger Atlas is a open source project based on the data of the intermediate layer protocol MySQL, the project Address:

The same types of tools as well as vc-mysql-sniffer, and -e mysql.query parameters tshark to resolve the MySQL protocol.

Download the installation is not to say, github address: https: //github.com/Qihoo360/mysql-sniffer (click at the end of the article, "read the original" Jump).

Centos6.2 and above recommended compile and install, and run by root.

Output format: time, user access, source IP, Access Database, took command, returns the number of rows of data, execute the statement.

 

-l Specifies the log output path, the log file will be named port.log.

Specify a log output path -l, -p ports need to be captured specified comma-separated list. The log file will be named each port.log.

Specify a log output path -l, -r specified port range, the log file will be named their port.log.

Specify a log output path -l, -r range designated port, the designated port -w comma list split filter, the log file will be named their port.log.

Specify a log output path -l, -p designated port, -n specified number of packets, each of the log files will be named port.log.

-p designated port, -t SQL specified length, the output of the first n characters of SQL (long scenes for SQL).

Other techniques use MySQL Sniffer more and Atlas, etc. Please pay attention to our follow-up of the relevant share.

 

Read the original

Guess you like

Origin www.cnblogs.com/HKROnline-SyncNavigator8-4-1/p/11015698.html
Recommended