Pt-config-diffCompare MySQL configuration files and server parametersExample:PT-CONFIG-DIFF/ETC/MY.CNF h=192.168.53.11--user=root--password=123456--socket=/tmp/mysql.sockpt-config-dirr/etc /my.cnf/etc/my_slave.cnfThe contents are as follows:21configdifferencesvariable /etc/my.cnf m11============================= ==============================================event_scheduler OFF onexpire_logs_ days21 14innodb_io_capacity1200 800innodb_max_dirty_pages.
First, IntroductionPt-table-checksum is one of the Percona-toolkit series tools that can be used to detect the consistency of the data in the master and from the database. The principle is to run on the Main library, checksum the synchronized tables and record them. It then compares the checksum of the main table to determine whether the data is consistent . The detection process in blocks, for large tables can be differentiated into multiple blocks, so as to avoid the lock table (according to a
Tags: MySQL consistency checkThe master-slave architecture based on the principle of MySQL logical replication often results in inconsistent master-slave data due to some reasons, which causes the master-slave copy process to interrupt the error. Instead of checking the status of the IO thread and the SQL thread from the library's show Slave status\g on a regular basis, you can only confirm that the current replication is normal, but cannot confirm that the current master-slave data is consisten
First, IntroductionPt-table-checksum is one of the Percona-toolkit series tools that can be used to detect the consistency of the data in the master and from the database. The principle is to run on the main library, checksum the synchronized tables and record them. It then compares the checksum of the main table to determine whether the data is consistent. The detection process in blocks, for large tables can be differentiated into multiple blocks, so as to avoid the lock table (according to a
Pt-table-checksum check and pt-table-sync repair data, checksum Check Tool1. Download the ToolkitLog on to the website and download the corresponding toolkit https://www.percona.com/downloads/percona-toolkit/LATEST/2. Installation(1) yum installation:
sudo yum install http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpmyum list | grep percona-toolkit
The result set
Essays-66 Articles-0 comments-MySQL slow query (ii)-Pt-query-digest detailed slow query log one, Introduction Pt-query-digest is a tool for analyzing MySQL slow query, it can analyze Binlog, Gene RAL Log, Slowlog, can also be analyzed via showprocesslist or MySQL protocol data captured by Tcpdump. The analysis results can be exported to a file, the analysis process is the parameters of the query statement,
Version: Pt-table-checksum 2.1.5, Pt-table-sync 2.1.5
Pt-table-checksum and Pt-table-sync are twins. Pt-table-checksum is used to detect data synchronization between the master and slave tables. Pt-table-sync is used to synchron
Use pt-query-digest to find the SQL statement that is not suitable, pt-query-digestsql
Overview of pt-query-digest1.
Indexes can be executed more quickly, but there must be unreasonable indexes. If you want to find those indexes that are not very suitable and optimize them before they become problems, you can use the pt
A Download and install Toolshttp://www.percona.com/downloads/percona-toolkit/Currently the latest version is percona-toolkit_2.2.12.tar.gzAfter uploading to the server, unzip and set to environment variablesAdd path to MySQL user's environment variable fileVI. bash_profileExport path= $PATH:/mysqldata/soft/percona-toolkit-2.2.12/bin Two. Use the Pt-table-checksum command to find inconsistent data The primary concern is diffs, 0 is consistent, 1 is in
MySQL -- pt-osc tool learning, mysql -- pt-osc Tool
##=================================================== ====================== ##Pt-osc workflow:1. Check whether the table has a primary key or a unique index and whether a trigger exists.2. Check the TABLE structure of the modified TABLE, create a temporary TABLE, and execute the alter table statement on the new
Introduction to common killing process parameters of pt-kill and parameters of pt-kill
Pt-kill is an excellent tool for kill MySQL connection and is part of percona toolkit, when the maximum number of connections is exceeded due to a large number of idle connections and a problematic SQL statement causes a high mysql load, you must kill some connections. This too
often use some tools provided by percona-toolkit. By the way, I will simply record them.
1. About pt-table-checksum and pt-table-sync?
Pt-table-checksum and pt-table-sync are some useful performance diagnostic tools provided by percona for mysql DBAs. In addition, XtraBackup is often used for backup, this physical ba
A: PT (Private Tracker) download is actually a BT download, but there are two obvious improvements: one is the private small-scale download, the second is to carry out traffic statistics, based on the amount of upload to determine your permissions.When BT downloads, The software will analyze the. torrent seed file to get the tracker address, and then connect to the tracker server, the server returns the IP of the other downloader, the downloader then
TbsourceOfficialWebsite (expired): http://www.tbsource.com/: http://www.ipv6bbs.com/thread-5152-1-1.htmlUse site: ccfbitsProgram Introduction: Tbsource should be regarded as the oldest PT source, on December 1, 2005 released an alpha version, the code stopped the update, it is released under the GPL protocol, can implement PHP database TrackR, butForum function not, PHP script is relatively easy to read, the domestic current Nexus project is also base
Tags: statement replicat specify element test load diff database family technology"Pt-table-checksum"Pt-table-checksum is one of the Percona-toolkit series tools that can be used to detect the consistency of the data in the master and from the database. The principle is to run on the main library, checksum the synchronized tables and record them. It then compares the checksum of the main table to determine
Using pt-heartbeat to monitor the replication latency of MySQL, pt-heartbeatmysql
Pt-heartbeat
During database master-slave replication, whether the replication status and data delay are normal is a critical indicator. How can we monitor it?
Pt-heartbeat is a centralized tool developed by PERCONA to monitor replication
Use pt-kill to kill the connection method according to certain rules, pt-killkill
Pt-kill is an excellent tool for kill MySQL connection and is part of percona toolkit, when the maximum number of connections is exceeded due to a large number of idle connections and a problematic SQL statement causes a high mysql load, you must kill some connections. This tool is
Verify MySQL master-slave consistency (pt-table-checksum pt-table-sync)
Percona-toolkit-2.2.8-1.noarch.rpm has two tools to verify MySQL master-slave Data ConsistencyInstalling tookkit requires some dependent packagesYum install perl-DBI perl-DBD-MySQL perl-IO-Socket-SSL perl-Time-HiRes-y
Lab Environment
Initialize lab data on MasterCreate database mvbox;Use mvbox;
Create table test (id int primary key, n
I. Pt-table-checksum1. Create a new account on both master and slaveGRANT SELECT, PROCESS, SUPER, REPLICATION SLAVE on * * to ' checksum ' @ ' 192.168.1.% ' identified by ' xxx ';2. Our Lord new Percona database3. Give all the permissions of the checksum account to the Percona database ( It is not required, it is already super privilege )GRANT all privileges on ' Percona '. * to ' checksum ' @ ' 192.168.118.126 ' with GRANT OPTION;4. The Lord performs
Verify MySQL master-slave consistency (pt-table-checksumamp; amp; pt-table-sync) percona-toolkit-2.2.8-1.noarch.rpm has two tools to verify MySQL master-slave data consistency
Installing tookkit requires some dependent packages
Yum install perl-DBI perl-DBD-MySQL perl-IO-Socket-SSL perl-Time-HiRes-y
Lab environment
Initialize lab data on Master
Create database mvbox;
Use mvbox;
Create table test (
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.