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-slave repl
1. IntroductionMaster-slave replication is the most common way to replicate MongoDB. This method is very flexible and can be used for backup, failure recovery, read scaling, and so on.The most basic way to set up is to establish a master node and one or more slave nodes, each from the node to know the address of the master
based on the master server ). Therefore, binary logs must be enabled on the master server for replication.
Each slave server receives updates recorded by the master server to the storage of its binary logs from the master server so that the
. 168.1.213 ', master_user = 'ilance', 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 use
Tags: Verify mys Ash ide false word waiting replicat dataWhen configuring MySQL master and slave, check the slave status, find the error message,The Error ' The MySQL server is running with the--skip-grant-tables option so it cannot execute this statement ' on query.mysql>showslavestatus\g***************************1.row**************** slave_io_ state:waitingfor
Mycat implements Mysql master-slave read/write splitting and mycatmysql master-slave read/write
I. Overview
There are many online Mycat principles. I will not detail them here. For me, Mycat has the following functions:
1. Mysql Master/S
Label:MySQL Master sync configuration Step reprint: http://www.jb51.net/article/33624.htm Create a sync user, modify the/ETC/MY.CNF profile, add the following to it, restart the server odd even MySQL service respectivelyMySQL Master Master sync configuration
Server name
Ip
System
Mysql
Odd.example.com
192.168.1.1
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, refer to:
the following three items:
Port = 27017DBPath =/data/mongodb_tLogPath =/var/log/mongodb_t.logKeyfile=/srv/mongodb/keyfileLogappend = TrueJournal = TrueFork = TrueKeyfile=/srv/mongodb/keyfile #添加keyfileAuth = True #打开认证Master = True #打开主库配置
3. Add KeyFileThe main purpose is to verify between master and slave
cd/srv/mongodb/OpenSSL rand-base
Redis master-slave replication complete synchronization and partial re-synchronization process, redis master-slave synchronization process
I recently read the master-slave replication section of redis. I have summarized the two S
Example of mysql master-slave database status detection function implemented by PHP, mysql master-slave
This example describes the mysql Master/Slave database status detection function implemented by PHP. We will share this with y
MySQL Replication
We know that the binary log of the MySQL database records every clear or potentially changing SQL statement of the database. Therefore, we can achieve the master-slave consistency of mysql based on the binary log. The simple mysql replication process we mentioned here is:First, there is a dump thread on the mysql Master server, which reads binar
Environment:MySQL database versions of A and B are 5.0.24.
A: master serverOperating System: Windows XPIP Address: 192.168.0.81B: slave serverOperating System: Windows XPIP Address: 192.168.0.82
Configuration process:1. Create a backup account in database A. The command is as follows:Grant replication slave, reload, super on *.*To test @ '192. 168.0.82'Identified
MYSQL Master/Slave: Master (new instance)-master (new instance, read-only) 1. One machine installs two instances (3307 and 3308) According to babaoqi. iteye. build mysqld3308 using comadminblogs1954110 method II. Build dual master: 3307, 3308 (read-only) # disable two mysql
As with MySQL replication, one server is responsible for writing services, while the other servers are responsible for reading services. This avoids the impact of concurrent index read/write on index performance, another large-scale search system can be built, and multiple servers can be used to share the system's read service.
To implement the replication function, you need an index writing server and a read Index Server, respectively write_a and read_ B.
1. write_a is used as the
Master-master Mutual Primary Preparation1: According to the master and slave configuration steps to configure Masterb to Mastera from the library;2: Make sure that Masterb is not written, get its sync point on Masterb by the show Master Status command, and then configure Mas
MySQL user in 192.168.95.12 that can log on in a 192.168.95.11 hostUsers: Mysql11Password: mysql11Mysql>grant REPLICATION SLAVE on * * to ' mysql11 ' @ ' 192.168.95.11 ' identified by ' mysql11 ';Mysql>flush privileges;Step Two:Viewing binary log names and locations in 192.168.95.12Mysql>show Master status;Step Three:Tell the binary file name and locationExecute
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.