process650) this.width=650; "src=" Http://hi.csdn.net/attachment/201108/16/0_1313511954txqe.gif "style=" border:none; "/ >Request-----> Local/etc/hosts # If there is parsing in the host file, then the parse result of the host file is returned, there is no next ----> Local DNS Cache # Find local DNS cache, if there is, return results, no next----> Find the first DNS server----> Find Cache # Find your own defined first DNS server, the DNS server looks for the cache, if there is, returns results,
runningMultiple files from the database directory[[Email protected] ~] #cat/var/lib/mysql/*Master.info connecting master server informationRelay-log.info Interrupt log informationHost name-relay-bin.xxxxxx Interrupt LogBogon-realy-bin.index Interrupt Log index filethird, the test master-Slave synchronization configuration1. Create a library on the primary se
Environment needs:Database server IP needs to be within the same networkThe following environment: 192.168.4.54 Primary Server192.168.4.55 for slave server#systemctl Stop Firewalld#systemctl Disable FIREWALLD#setenforce 0Yum Repolist1. Primary database server Configuration Master 541.1 Doing user authorizationMysql>grant replication Slave on .->to [email protecte
), because they determine the location of a binary log, you can use the show master status Command to find the coordinates of the log file;(3) binary log file of the master node.You can use the following methods to create an slave:(1) cold copy (cold copy)Stop the master, copy the
] [query options]parsing www.magedu.com [Email protected] named]# dig-t A www.magedu.com @172.16.249.17;Reverse parsing:Region name: Network address back write . In-addr.arpa.(1) define the areaZone "Zone_name" in {Type{master|slave|forward} ;file " Network Address . Zone "};Cases:Zone "1.16.172.in-addr.arpa" in {typemaster; File "192.168.zone";};(2) Zone Resolution library file Note: MX and A, as well as
configuration OK, you can insert data in the main database to test, whether from the library to synchronize the wood has ...Note: Check your firewall !!!In fact, the configuration process is very easy, not too excited, we take a little time to understand its principal and subordinate principle.The following content should have some effect on your understanding. the basic process of MySQL replication is as follows :(each part learns from Google, than
Mysql5.5 master-slave synchronous replication configuration, mysql5.5 master-slave Synchronization
In the previous article "mud: learning the principles of mysql database master-slave synchronous replication", we introduced the
load has grown to a point that the master server cannot handle.Before you get the benefits, you need to know the query mode to determine how many slave servers can be used and how much performance can be improved for your site, in addition, the relationship between the throughput and write (max_writes) throughput of a typical
easy, not too excited, we spend some time to understand the principle of master and slave.The following content should have some effect on your understanding. a MySQL copy of the basic process is as follows :(each part of learning from Google, thank you)1. The IO line above the Slave Chenglian connect to Master and re
Some time ago, the company's projects were too busy to write a blog. Today, I want to write an article. I have explained the basic operations of apsaradb for redis in the previous section. Now I will continue to explain the advanced sections of apsaradb for redis, including master-slave replication and read/write splitting.
1. What is
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-
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
reset MASTER and reset SLAVE commands considerations
RESET MASTERDelete all binlog files recorded in index file, empty the log index file, and create a new log file, which is usually used only for the first time when the master-slave relationship is built.AttentionReset
, respectively
6379 (Master)
6380 (Slave)
6381 (Slave)
Modify the original redis.conf file and copy out 2 redis.conf files
mv/etc/redis.conf/etc/redis.6379.conf
cp/etc/redis.6379.conf/etc/redis.6380.conf
cp/etc/ Redis.6379.conf/etc/redis.6381.conf
Modify 6380 and 6381 profiles through VI
Vi/etc/redis.6380.conf
Replace 6379 to 6380 by command
:%s/6379/6380/gTh
production environments use asynchronous replication.
2. Basic replication process:
1. the I/O Process on the slave connects to the master, and requests the log content after the specified location of the specified file (or from the initial log.
2. After the Master receives a request from the
Replication of MySQL, you must first enable the binlog (mysql-bin.xxxxxx) log function on the master side, otherwise the master-slave Replication of mysql cannot be achieved. Because the whole master-slave replication process of mysql is actually: The
Tags: des http ar io os using SP for strongHttp://heylinux.com/archives/1004.htmlAs the most widely used free database in the world, MySQL believes that all engineers engaged in system operations must have contacted. However, in the actual production environment, the single MySQL as a separate database is completely unable to meet the actual needs, whether in security, high availability and high concurrency and other aspects.Therefore, in general, it is through the
http://heylinux.com/archives/1004.html MySQL Master-slave Replication (master-slave) and read-write separation (Mysql-proxy) practiceAs the most widely used free database in the world, MySQL believes that all engineers engaged in system operations must have contacted. However, in the actual production environment, the
IntroductionGtid is a global transaction ID that has been successfully executed based on the original MySQL server, combined with the server ID and transaction ID. This global transaction ID is unique not only on the original server, but also on all MySQL servers where the master-slave relationship exists. It is this feature that makes MySQL
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.