In the process of implementing the mysql master-slave architecture, you can use the mysqldump-based method to build the master-slave architecture. Mysqldump has generated GTID information during the backup process, that is, these GTID can be skipped. for unskipped GTID, I/O threads are copied to the slave server and executed by the SQL thread. This article mainly demonstrates how to set up mysql master/slave in GTID mode. For more information, see configure MySQLGTID master-slave replication to quickly build a slave database based on mysqldump. use mysqldump to build a master-slave architecture. Mysqldump has generated GTID information during the backup process, that is, these GTID can be skipped. for unskipped GTID, I/O threads are copied to the slave server and executed by the SQL thread. This article mainly demonstrates how to set up mysql master/slave in GTID mode. For more information, see: Configure MySQL GTID master-slave replication. quickly build a slave database based on mysqldump. use mysqldump to export the database. 1. GTID method 1. if all the binlogs of the master are still running, after installing slave, directly change the master to the master. The principle is to directly obtain all the gtids of the master and execute the command. the advantage is that if there are too many binlogs, full data synchronization takes a long time, and the master needs to start GTID from the very beginning. Conclusion: it is applicable to the situation where the master is not new soon. 2
1. 8 articles about gtid master and slave are recommended
Introduction: XAMPP (Apache + MySQL + PHP + PERL) is a powerful integrated website creation software package. XAMPP can be used to quickly build a PHP development environment. Download link: https://www.apachefriends.org/download.html go to download page select XAMPP for Linux Download
[Related Q & A recommendations ]:
Php development environment lnmp is very troublesome. how can we quickly build it? every time the system is reinstalled, we have to reinstall it again.
Apache-wampserver multi-version php switch failed
Java-how to use springboot gradle to quickly build a helloworld?
What is the "community" function built by javascript-LeanCloud used?
Php development environment lnmp is very troublesome. how can we quickly build it? every time the system is reinstalled, we have to reinstall it again.
The above are the details of 10 recommended special effects (favorites). For more information, see other related articles in the first PHP community!