1. Installmysql
(1) Unzipmysqlpackage and createmysqlUsers and creationmysqldata directory span>
tar zxvf mysql-5.6.43-linux -glibc2.12-x86_64.tar.gz
mv mysql-5.6.43-linux-glibc2
1. Installmysql
(1) Unzipmysqlpackage and createmysqlUsers and creationmysqldata directory span>
tar zxvf mysql-5.6.43-linux -glibc2.12-x86_64.tar.gz
mv mysql-5.6.43-linux-glibc2
1. Modify the my.cnf file
vim /etc/my.cnf 1.1 Main Library< /p> #The current mysql service number is 1, which is the first mysql server
server-id=1
#Binary log file
log-bin=mysql-bin
1
pt-heartbeat monitors mysql master-slave synchronization delay:
Install percona toolkit (pt-heartbeat is a subcommand of the software):
http://repo .percona.com/release/6/RPMS/x86_64/pe