MySQL master-slave replication steps and common error solutions, mysql Common Errors
Mysql master-slave replication (replication synchronization) is widely used and mature in enterprise
System version: CentOS 6.5 mysql version: mysql-5.5.38Production environment, if the same database server to do write service and read services, whether from security, high availability or high concurrency and other angles can not meet the actual demand, therefore, the general use of multiple database servers through master-s
At present I think the database master and slave have two major application value:1. The backup from the library is equivalent to the main library. Although the master-slave of the database can not replace/replace the backup, for example, the wrong data may destroy all the databases, but the
Label:MySQL master-slave replication Scenario Description:Primary database server: 192.168.10.130,mysql is already installed and has no application data.From the database server: 192.168.10.131,mysql is installed and no application data is applied. 2.1 Operations on the primary server Start the
MySQL two-way master-slave replication server configuration method 1. environment description
Server A (master) 192.85.1.175Server B (slave) 192.85.1.176
Mysql version: 5.1.61
System version: System OS: ubuntu 10.10X86
(System i
Objective: To enable two MySQL servers to provide synchronization services from each other.Advantages:1. The main advantage of MySQL's master-slave replication is that it synchronizes "backup" and the database on the slave is equivalent to a (basic real-time) backup repository.2. On the basis of
1. IntroductionAs one of the most widely used databases in the world, MySQL is one of the reasons why it is free. But what is not to be overlooked is that its own function is indeed very powerful. With the development of technology, in the actual production environment, the single MySQL database server can not meet the actual demand. At this point the database cluster is a good solution to this problem. Wit
problem of automatic growth.
Assume that A is A database in A production environment. Now I want to add server B to implement the dual-master model.
2. steps:
1. Create an account with the copy permission on server A and server B
2. modify the configuration file (enable binary logs and relay logs) on server A and server B)
3. Import the data files on server A to server B.
Note: When importing data, disable the binary log of server B.
4. Let B first
write in front: If this article is fortunate enough to be seen by a friend and found wrong, I hope to criticize. If you do not understand the place, we would like to discuss together.
Fundamentals of MySQL Replication
Basic issues that MySQL replication solvesKeep the data of one MySQL server in sync with the data from other
MySQL replication (2) Master-Slave replication practices, mysqlmaster-slave1. Preparations
First, prepare two machines to install mysql
My version here is 5.1.73, mysql database installation refer to: http://www.cnblogs.com/tangyanbo/p/4289753.html
Centos for linux
The ma
MySQL master-slave replication is widely used in database backup, failover, data analysis and other occasions.MySQL master-slave replication keeps track of all changes to the database (update, delete, and so on) in the binary log based on the
In mysql-cluster, the SQL node (master) and the Independent mysql server (slave) are used to copy (troubleshoot) The cluster environment: www.2cto.com mysql-cluster 7.2.8 (mysql 5.5.27; ndb 7.2.8) 192.168.55.11 mgm node (nodeid =
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 changes the record to the binary log (binary log) (these records are called binary logs, binary log events);(2) Slave will copy Master's binary log events to its trunk logs (relay log);(3) Slave the event in the relay log to change the data that reflects it.
The following figure describes the process of replication:
The first part of the process is t
The second part was intended to test whether the master server was suspended and the slave server was upgraded. However, an accident occurred. Instead, it was used to test how to recover a slave server when it was suspended.
Put the failure of the master server in the third part.
Continue to test with
Mysql master-slave installation configuration environment: the MySQL database version on the master-slave server is 5.1.34 Host IP Address: 192.168.0.1 slave IP Address: 192.168.0.2I.
1. View the status of MasterShow master status; Position should not be 0show Processlist; //state status should be have sent all binlog to slave; waiting for Binlog to be updated2. View slave statusshow slave status;//slave_io_running and slave_sql_running states must be Yesshow Processlist;//There should be two rows w
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.