MySQL master-slave Switch manualMaster-slave ArchitectureOperation and Maintenance DepartmentV1.0 . Year May 24Normal switching
Check slave synchronization Status
1) in master execution: show Processlist;Show
/install/bin/mysql-uroot-ppwd-e "FLUSH binary logs ;"
Mysql-3308/install/bin/mysql-uroot-ppwd-e "FLUSH binary logs ;"
# Set the start position of synchronization. Run 'show MASTER status' on 3307 and 3308 respectively to record File and Position
# Change master to master_ho
MYSQL usage experience (8)-configuration and recovery of online master-slave replication cluster and online execution of master-slave configuration FLUSHTABLESWITHREADLOCK; UNLOCKTABLES; there is a master.info file under the slave
The ultimate goal of data replication is to synchronize the data of one server with the data of another server, which can achieve data redundancy or load balancing of services. A master server can connect multiple slave servers, and the slave server can act as the master server in turn. The
The ddl and dml operations of the master database on the master server are uploaded to the slaves server through binary logs, and these log files are re-executed on the master server.
The ddl and dml operations of the master database on the master server are uploaded to the
Bin-log where to start the log content, please send me ";4),Slave sql_thread detected the new content in Relay-log, will immediately parse the contents of Relay-log into The Master side performs the actual execution of those executable content and puts it back on the local computer. Summary: The most important thing about MySQL
MySQL Master-Slave architecture of the applicable scenario is read-write separation, written through the main library, read from the library, most of the scene is read more cases, a single master slave architecture can be very good to solve the problem of high reading pressu
The data synchronization function of mysql not only provides load balancing for database queries to a certain extent, but also provides great help for database redundancy, backup, recovery, and load balancing. The data synchronization function can be implemented through master-slave replication, while master-
the 10.100.0.200 address, the password is 1234. (If the new old password algorithm for MySQL version is different, you can set: Set password for ' backup ' @ ' 10.100.0.200 ' =old_password (' 1234 '))2.2. Copy data(If you are completely new to installing MySQL master server, this step is not required.) Because the newly installed
servers, and other network applications. The master-slave architecture is this type of load balancing.
Benefits of master-slave architecture1. Load balancing (read/write separation, improve data processing efficiency)2. High availability and failover capabilities (data distribution, stability improvement. Primary serv
Label:After two hosts A and B build the MySQL master-slave copy relationship (A is master,b to slave), the show slave status is executed on slave, and the results show last_io_error:err
1. The prepared host node1: 172.16.133.11node2: 172.16.133.12 has been installed with MySQLMySQL. For details, see 5142926. blog.51cto. com51329269356522.mysql master-slave replication node1: master server.
1. The prepared host node1: 172.16.133.11node2: 172.16.133.12 has been installed with MySQLMySQL. For details, re
Tags: multi-version HTTPS sync/etc/cannot start self Insert Star BlogMysql Proxy Lua Read and write separation settingsI. Read-Write separation instructions
Read-Write separation (Read/write splitting), the basic principle is to let the main database processing transaction increment, change, delete operation (INSERT, UPDATE, delete), and from the database processing select query operation. Database replication is used to synchronize changes caused by transactional operations to the
are automatically implemented by MySQL, we only need to configure.We'll cover the details of the principle in more detail, which has a picture:Has two servers that demonstrate the process of synchronizing data from a primary server (master) to a Slave server (slave).This is an example of a
Experimental environmentTwo CENTOS7 MySQL5.7.12 IP addresses are: 192.168.10.36 192.168.10.37One CENTOS7 mycat IP address is: 192.168.10.31One: Install MySQL as shown here (yum installation is used here):Two: Configure MySQL, and build MySQL master-slave1: Initialize the password, because I did not find the first start
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.