Quick Setup of mysql master-slave synchronization _ MySQL
Source: Internet
Author: User
Mysql master-slave synchronization quick setup method bitsCN.com installation environment
Centos 1, 5.4
Mysql 5.1.xx is directly installed using rpm
Xtrabackup 1.2.22 directly installed with rpm
3. Master: Set the slave user permissions for synchronization in the master database.
Grant replication slave on *.*
TO' '@' '
Identified' ';
4. Master: export data to slave Xtrabackup is used to back up mysql. the advantage is that the lock table time on the master node is very short and can be used in the actual production environment. xtrabackup automatically records the location of the synchronization log file.
In this step, the master data, including the entire table structure, is exported, compressed, copied to slave, and decompressed to the/tmp/db directory of slave.
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.