MySQL master/slave server chain copy configuration (ubuntu) Ubuntu
BitsCN.com
MySQL master/slave server chain copy configuration (ubuntu)
Server structure:
Three servers A, B, and C, where A is the news data source, A is the Master of B, B is the
To build Xtrabackup, you must understand the backup and restoration of the Xtrabackup tool to build a master-slave architecture online. MySQL backup tools of the Enterprise Edition that MySQL has always recommended:
To build Xtrabackup, you must
Data replication between the master server and slave server is implemented. We do not repeat mysql installation here. For more information, see other documents. Assume that the servers on the two nodes have
Data replication between the master server
The applicable scenario of the MySQL master-slave architecture is read/write splitting, which reads data from the master database. In most scenarios, there are many read cases, the single master multi-slave architecture can solve the problem of high
First, IntroductionPt-table-checksum is one of the Percona-toolkit series tools that can be used to detect the consistency of the data in the master and from the database. The principle is to run on the main library, checksum the synchronized tables
This article implements two Database Synchronization modes: master-slave mode and mutual backup mode.
Implementation environment:
Two Linux machines
Sera IP: 10.0.0.20.
Serb IP: 10.0.0.234
Demo1: Master/Slave Mode
MASTER: sera slave:
First, write in front ofSince Jumpserver currently does not support dual-machine hot standby, the program uses database and system user data backup implementation, mainly in the following areas:1, MySQL database master synchronization2. System files:
Usage of mysqltoolkit [memo] bitsCN.com
Mysql toolkit is a small plug-in used to monitor and analyze databases. it is usually used to call perl to analyze and compare the current environment and database. it is worth learning.
This article describes how to configure the environment of mysql5.6.14 master-slave replication (also called mysqlAB replication). For more information, see
I. Principles of mysql master (master) slave (slave) replication:
(1) the master records
I. Permission tableThree permission tables in the mysql database: user, db, hostThe access process of the permission table is:1) check whether the connected IP address, user name, and password exist in the table from the host, user, and password
MysqlbinlogA tool that reads statements from binary logs. Logs of executed statements contained in the binary log file can be used to help recover from a crash. I. MYSQL database logs:1. error log:-log-error2. query logs:-log3. slow query
Slave_ SQL _Running: Nomysql synchronization fault solution today I checked the database and found that a MySQLSlave was not synchronized with the host. Check the Slave status: mysqlgt; show
Slave_ SQL _Running: No mysql synchronization fault
Mysql database read/write splitting Data Synchronization I used two xp (one master, one slave) systems to test successfully, and I also did a test on linux systems, however, I think the problem I encountered is the same. In xp, the problem can be
There are two MySQL database servers: Master and slave. The Master is the Master server. The slave is the slave server. In the initial state, the data information in Master and slave is the same. When the data in Master changes, slave also changes
RealWar environment Introduction:
Server Name
IP
System
MySQL
Odd.example.com
192.168.1.116
Rhel-5.8
5.5.16
Even.example.com
192.168.1.115
Rhel-5.8
5.5.16
Assume that the database to be
OS: Ubuntu Server 12.10
For two servers, the Intranet IP address of A is 192.168.1.111, the Intranet IP address of B is 192.168.1.222, A is the master, and B is the Slave.
1. Configure Mysql of
(1) vim/etc/mysql/my. cnf
Remove the # comment for
Background Master-slave switchover is a necessary step for the high-availability MySQL architecture (that is, the use does not occur, but must be prepared ). Generally, it is set to double M (M1, M2). If the current status is M1 and M2 is read-only,
Open the log-bin parameter in the master database to ensure that the server-id parameters of the master and slave are different.
Create a rep user on the master to allow slave access
[Plain] view plaincopyprint?MASTER @ root @ (none) 12:34:34> grant
Configuration of Dual-machine hot standby for MySQL database and dual-machine hot standby for mysql database
1. Mysql databases do not have an incremental backup mechanism. When the data volume is too large, backup is a big problem. Fortunately, the
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.