MySQL replication is divided into master-slave replication and master-master replication. What is master-slave Replication refers to a master server with one or more servers as the
Mysql master-slave and master-slave replication configuration demonstration, mysql master-slave
Experimental System: CentOS 6.6 _ x86_64
Prerequisites: Prepare the compiling environment in advance, and disable both firewall and se
.
Master_user indicates the user that can be synchronized on the master database master.
Maser_password indicates the password for synchronizing users
Master_log_file indicates which binlog file to start Synchronization
Master_log_pos indicates that synchronization starts from the position of the pos node of the binlog file.
Master_connect_retry indicates the synchronization cycle between the
MySQL Master-Slave introductionConfigure the Primary
MySQL after installation modify the MY.CNF configuration file, modify the MY.CNF, add server-id=130 and Log_bin=dashuo1
[[emailprotected] ~]# vim /etc/my.cnf
After modifying the configuration file, start or restart the Mysqld service
[[emailprotected] ~]# /etc/init.d/mysqld restart
Several files appear under/data/mysql
master server, it connects to the master server and waits for the update process. If the master server fails or the slave server loses its connection with the master server, the slave server keeps trying to connect regularly unti
', master_password = '000000', master_log_file = 'mysql-bin.000003', master_log_pos = 192, master_connect_retry = 123456;
Master_host indicates the IP address of the master database.
Master_user indicates the user that can be synchronized on the master database master.
Maser_password indicates the password for synchronizing users
Master_log_file indicates whi
Tags: two kinds of sharing pictures according to host data image inf copy mysqldump1. mysql Master-slave configuration MySQL master-slave is also called replication, AB replication. Simply speaking, A and b two machines from the back, write the data on a, the other B will follow the writing data, the two data is real-t
MySQL Master-Slave introductionMySQL master-slave is also called replication, AB replication. Simply said that A and b two machines from the back, on a to write the data, the other B will follow the writing data, the two data in real-time synchronization. MySQL master-
MySQL Master-Slave replication (Master-slave) practice, mysqlmaster-Slave
The master-slave replication function provided by the MySQL database can easily implement multiple automatic da
Detailed tutorial on MySQL5.7.18 master-slave replication (one master and one slave) and mysql5.7.18 slave
I. Replication Principle
The master server writes updates to the binary log file and maintains an index of the file to trac
MySQL master-slave replication principle and architecture, mysql master-slave architecture1 copy Overview
The built-in replication function of Mysql is the basis for building large and high-performance applications. This distribution mechanism replicates data from a Mysql host to another Server Load balancer instance,
slave: 192.168.80.136
MASTER:
1. Create an account and grant the following permissions:Mysql> grant replication slave, replication client on *. * To 'bak' @ '192. 168.80.136 'identified by '20140901 ';2. log on to the master database from the database for testing.Mysql> mysql-h192.168.80.135-ubak-p123456Configuration
1. In the primary database server, add a user with access to the main library from the server:
GRANT REPLICATION SLAVE on *.* to ' test ' @ '% ' identified by ' test ';
(% to allow all IP, can set specified from server IP)
After adding a user:
Mysql-h127.0.0.1-utest-ptest can be used on the server; To test whether you have access to the primary database
2. In the main repository configuration file plus:#master
the master database and are adjusted according to the hardware memory:# Binlog_format = mixed# Required unique id between 1 and 2 ^ 32-1# Defaults to 1 if master-host is not set# But will not function as a master if omittedServer-id = 2 // slave id. Do not repeat it.Read_only = 1Binlog_format = mixedBinlog_cache_size
Objective: the master database is down and upgraded from the master database to the master database.Prepare the environment:1 web Server3 MySQL serversEnvironment description:1. The bbs website service is running on the web, and the database service is provided by the MySQL-01.2. MySQL-02 and-03 are MySQL-01 slave Libr
Master and slave configurationMongoDB's Master-slave mode configuration is as follows1.keyFileGenerate Key_file
OpenSSL rand-base64 741 > Mongo_key
Place Mongo_key in the places where master and slave MongoDB user c
Mysql master-slave replication principle and configuration, mysql master-slave Principle
Mysql master-slave replication principle and Configuration
1.OverviewThe built-in replication function of Mysql is the basis for building lar
MySQL master-slave replication, mysql master-slave
Original article published on cu:
Reference:
This article involves the principle of MySQL master-slave replication and a simple verification of
Overview replication is usually used to create a copy of the master node to ensure high availability by adding redundant nodes. Of course, replication can also be used for other purposes, such as reading and analyzing data on the slave node. In horizontally Scalable businesses, replication is easy to implement, mainly in the use of the master node for write opera
Label:Under Windows configuration, the following will be configured under Linux to test, you need to configure the MySQL database synchronization of Friends can refer to. 1. On the primary database server, add a user with permission to access the main library from the server:GRANT REPLICATION SLAVE on * * to ' test ' @ ' percent ' identified by ' test ';(% = Allow all IPs, can be set specified from server IP)After adding a user:Mysql-h127.0.0.1-utest-
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.