MySQL master-slave backup Configuration instanceScene:1, the primary server 192.168.0.225, from the server 192.168.0.226. Where the data is already available on the master server.2, the MySQL version on the master and slave server and the same installation configuration.First, the principle of master-slave backup:Each
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 can access.Set permissions
chmod Mongo_key
Set up
Onwer chown Mongodb:nogroup Mongo_key
2.
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 replication is performed asynchronously. mysql only supports one
The ultimate goal of data replication is to synchronize the data of one server with the data of another server, which can achieve data redundancy or load balancing of services. A master server can connect multiple slave servers, and the slave server can act as the master server in turn. The master-slave server can be located in different network topologies. Due t
Tags: mysql database replication primary master replication Master-slave replication semi-synchronous replication--------------MySQL to implement the database master-slave replication Architecture----------------First, the Environment preparation:CentOS System server 2, a user to do MySQL master server, one for MySQL f
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 when reboot is complete
Backu
= mysql -- datadir =/mydata/data/Cp support-files/my-large.cnf/etc/my. cnfCp support-files/mysql. server/etc/init. d/mysqldChkconfig -- add mysqldChkconfig mysqld on
2. Edit the configuration file:
Vim/etc/my. cnf--------------------------------Datadir =/mydata/data // Add this row--------------------------------Service mysqld start/Usr/local/mysql/bin/mysql // connection test
Ii. Master-slave Replication
In this experiment, I first set 19.43 as
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 Mastera to Masterb from the library.In general,
MySQL ReplicationMySQL replication refers to the transfer of DDL and DML operations on the main library to the library from the binary log, keeping the master and the data from the library in syncMySQL Master-slave Architecture: Advantages: Can cut the library when failure, read and write separation, perform other business from the library such as backup.1:master
Label:From:http://www.cnblogs.com/tae44/p/4682810.html Experimental system: CentOS 6.6_x86_64 Lab Prerequisites: Prepare the build environment in advance, firewall and SELinux are off The experiment shows that there are 2 hosts in this experiment, such as the topology of IP assignment Lab Software: mariadb-10.0.20 Experimental topology: First, install MySQL 1. Compile and install MARIADB: Tar XF mariadb-10.0.20-linux-x86_64.tar.gz -c/usr/local/
cd/usr/local/
LN-SV mariadb-10.0.20-linux-x8
Tags: permissions com mysq attention machine ext Root base mysql MasterFirst, MySQL master-slave introductionMySQL master-slave is also called replication, AB replication. Simply speaking is a and b two machines from the back, write the data on a, the other B will follow the writing data, both data real-time synchronizationMySQL master-slave is based on Binlog, t
Environment:
Host name
Host IP
Operating System
MySQL version
Mysqla
172.16.4.235
CentOS 6.52.6.32-431.el6.x86_64
Mysql-community-server-5.7.5-0.6.m15.el6.x86_64
Mysqlb
172.16.4.236
CentOS 6.52.6.32-431.el6.x86_64
Mysql-community-server-5.7.5-0.6.m15.el6.x86_64
MySQL dual master + semi-synchronous architecture reference previous post: http://qicheng0211
Tags: server database virtual machine MySQL Masterpick up http://wsw26.blog.51cto.com/1442148/1749125 I've done this a has to add a D virtual machine on the main architecture of BC (the same environment), my purpose is D and a master master, BC continue to do a from, This is both D650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M02/7E/6E/wKiom1b-vunTUbfJAAAQQD0Y3M4340.jpg "title=" figure. jpg " alt=
Master configuration file:[Email protected] ~]# MORE/ETC/MY.CNF[Mysqld]Datadir=/var/lib/mysqlSocket=/var/lib/mysql/mysql.sockUser=mysql# Disabling Symbolic-links is recommended to prevent assorted security risksSymbolic-links=0?Log-bin=mysqlbinServer-id = 1 #主机标示, integerRead-only =0 #主机, read and write all canBinlog-do-db =testdb01 #需要备份数据, more than one write multiple linesBinlog-ignore-db =mysql #不需要备份的数据库, more than one write multiple lines?[Mysql
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, and execute it again. During the replication process, one server acts as the
Rotten mud: mysql5.5 master-slave synchronous replication configuration, mysql5.5 master-slave
This article was sponsored by Xiuyi linfeng and first launched in the dark world.
In the previous article "mud: learning the principles of mysql database master-slave synchronous replication", we introduced the basic principles of mysql
1. Add a user with the permission to access the master database on the master database server:Grant replication slave on *. * TO 'test' @ '%' identified by 'test ';(% Indicates that all IP addresses are allowed. You can specify the slave server IP address)After adding a user:You can use mysql-h127.0.0.1-utest-ptest; on the slave server to test whether you have the permission to access the
The master-slave replication structure of MySQL is different from the master-slave replication structure. In the master-master replication structure, any changes to the data inventory on one of the two servers will be synchronized to the other, so that the two servers are mutually
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.