Two Linux servers with MySQL installed can be YUM installed, binary package installed, or source code package compiled.
Two Linux servers with MySQL installed can be YUM installed, binary package installed, or source code package compiled.
First, the experiment environmentTwo Linux servers with MySQL installed can be YUM installed, Binary packages installed,
master1:192.168.128.47Master2:192.168.128.96slave:192.168.128.97master1 and Master2, master2 as slave Master①, On the Master1 side: Modify My.cnfserver-id = 1auto_increment_increment = 2auto_increment_offset = 1#binlog_do_db = Sssjpt,sakila,test --optional, to specify those DB operations records on the master side binlog#binlog_ignore_db =
replication: (1) Master changes the record to binary log (these are called binary log events, binary logs event);(2) Slave copies the binary log events of master to its trunk logs (relay log);(3) Slave redo the event in the trunk log and change the data to reflect its own. Describes the process of replication: The fi
The ultimate goal of replication is to keep the data of one server in sync with the data of another server, which has reached data redundancy or service load balancing. A primary server can connect to multiple slave servers, and from the server it can also be the primary server. The master and slave servers can be located in different network topologies, and beca
Mysql master-slave replication practicesAsynchronous master-slave Replication
Master-slave deployment steps:
Backup and Restoration
Use mysqldump or xtrabackup
Restore the
Tags: Linux OPS linux operations engineerThis paper mainly introduces the realization of MySQL master-slave copy function under the environment of single-database multi-instance.Basic Flow:1.MySQL Master-Slave Replication Introduc
Tags: style blog http color io os ar using forDue to background reasons, the master-slave synchronization is to be based on the MySQL 5.1 version, master-slave synchronization is mainly a database read and write access to the original database heat is too large, need to be u
First, the principle of reproduction
MySQL replication tracks all changes to the database (update, delete, and so on) based on the primary server in the binary log. Each receive from the server from the primary server has been logged to the saved update of the binary log so that the same update can be performed on its data copy from the server.
One way to copy the data from the primary server to the server is to use the load data from
Mysql is a master-slave problem-log synchronization data is not synchronized bitsCN.com
I set up mysql for master-slave replication.
The mysql environment of the two machines is identic
Perform master-slave configuration online
Steps
1. Lock table
FLUSH TABLES with READ LOCK;
2. Copy data file, or export
3. Record the log location of master
Master_log_file
Master_log_pos
4. Unlock the main library
UNLOCK TABLES;
5. Start Master and slave configura
Mysql master-slave replication bitsCN.com I. environment description
Master Database server ip address: 192.168.0.2
Slave Database server ip: 192.168.0.3
Mysql on the master-
This article mainly introduces the relevant information. For more information, see the following steps.
I. preparation
Test with two servers:
Master Server: 192.0.0.1/Linux/MYSQL 4.1.12Slave Server: 192.0.0.2/Linux/MYSQL 4.1.18
The principle of master slave server is that t
MySQL master-slave synchronization settings and synchronization error handling Note: 1. The database versions of the two servers should be the same. If they are different, the slave server version should be higher than the master server version. 2.
Tagged: Server server multithreading MySQL styleGtid,global Transaction Identifiers, the global transaction identifier consists of a unique identifier for the server's UUID and transaction ID number. After MySQL 5.6, the transaction header records the server UUID, which is very simple to track.Uuiduniversally unique Identifier, globally unique identifier. A is master
Tags: mysqlMySQL master-Slave synchronization architecture is currently one of the most used database schemas, the Mysam engine is responsible for adding modified delete operations, the INNODB engine is responsible for querying, so-called read-write separation. Especially the heavy load of the site, so for master-slave
Label:Reprinted from: http://blog.chinaunix.net/uid-20639775-id-3254611.html MySQL master-Slave synchronization architecture is currently one of the most used database architecture, especially the load is relatively large site, so for master-slave synchronization management
use a binary log and set a unique ID number.On each slave server, you must set a unique ID number in order to connect to the Maste server(optional) Create an independent user to authenticate the primary server and replicate by accessing the binary logBefore you create a data snapshot or start the replication process, you need to log the master server's binary log location. This information is required at l
MySQL master-Slave synchronization architecture is currently one of the most used database architecture, especially the load is relatively large site, so for master-slave synchronization management is very important, novice often in the case of
scene modesMaster-Slave: The Master is responsible for all data queries and changes, from only responsible for data backup, only to the role of backupMaster Write-read from: The Master is responsible for the storage and modification of the data source, not for data query. From not only the role of real-time backup, but also provide access to the external query d
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.