Installation and use of Percona-toolkit tools 2

Source: Internet
Author: User
Tags percona

[[email protected] ~]# CD/Usr/bin[[email protected] bin]# ls PT*PT-Align PT-Duplicate-Key-Checker PT-Ioprofile PT-Show-Grants PT-Table-Checksumptar PT-Fifo-Split PT-KillPt-Sift PT-Table-SYNCPT-Archiver PT-Find PT-Mext PT-Slave-Delay PT-Table-Usageptardiff PT-Fingerprint PT-Mysql-Summary PT-Slave-Find PT-upgradept-Config-Diff PT-Fk-Error-Logger PT-Online-Schema-Change PT-Slave-Restart PT-Variable-advisorpt-Deadlock-Logger PT-Heartbeat PT-PMP PT-Stalk PT-Visual-EXPLAINPT-Diskstats PT-Index-Usage PT-Query-Digest PT-Summary ptx
[[email protected] bin]# ./Mysql-Uroot-Paa@12345 -S/Tmp/Mysql.sock5-E "explainSelect *  fromMysql.User"|Pt-Visual-explainTablescanrows7+- Table   Table          User

Slow query Log analysis Statistics PT-Query-Digest/Data/Logs/Mysql/Mysql-Slow.Log  

Table Sync Tool, and MK-Tables-sync function, the usage is slightly different, –print results more detailed PT-Table-Sync--Execute--print--no-check-slave--database=world h= ' 127.0.0.1 '--user=root--password=123456 h= ' 192.168.0.212 '-- User=root--password=123456

Master-Slave status monitoring, provided to it a MySQL server IP user name password, you can analyze the entire master-slave architecture of each server information, including but not limited to MySQL version, IP address, server Id,mysql service startup time, role (main/from), Slave Status (lag behind the master server for how many seconds, there is no error, Slave is not running). Pt-Slave-Find--host=localhost--user=rhce6--password=rhce6
MySQL Deadlock monitoring pt-Deadlock-Logger h='127.0.0.1' --User=root--password=123456

PRIMARY key conflict Check PT-Duplicate-Key-Checker--database=world h= ' 127.0.0.1 '--user=root--password=123456

monitoring replication Latency from a library # # #经过测试 running this command causes the SQL thread exception from the library to hang up PT-Slave-Delay--host 192.168.0.206--user=root--password=123456

Installation and use of Percona-toolkit tools 2

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.