=============================================================================================Second, semi-synchronous replicationBecause MySQL replication is based on asynchronous, in special cases can not guarantee the successful replication of data, so after MySQL 5.5 used from Google patch, MySQL replication can be
MySQL replication Overview
MySQL supports unidirectional and asynchronous replication. One server acts as the master server during the replication process, and one or more other servers act as slave servers. MySQL replication tracks all database changes (updates, deletions, and so on) in binary logs based on the master
connection needs to be opened, firewall to open 1433 ports. Third, according to the online publishing tutorial to operate, the following is the tutorial URL: http://www.cnblogs.com/CareySon/archive/2012/06/20/ introducttosqlserverreplicationpart1.html http://dufei.blog.51cto.com/382644/84645/Delete a publication using the following system stored procedures:sp_removedbreplication @dbname = ' dbname ', @type = ' type 'Parameters[@dbname =] ' DBName 'The name of the database. The dbname data type
Tags: ado select form col sem images. com synchronization srcFirst, Brief introduction
Viewed documents: http://www.actionsky.com/mysql-57-semi-sync-intro/Where the semi-synchronous copy is explained in great detail.
Second, the simple configuration
Semi-synchronous replication is the main theory of mastering, this configuration is just
Percona MySQL5.6 semi-synchronous Replication
Configure normal clone first
Two servers, one master and one slave
Master Server:
10.10.1.30
Slave:
10.10.1.200
Modify the my. cnf file of each machine and the server_id
Master server server_id = 1, slave server_id = 2
Restart the two servers and run the following command:
Show variables like 'server _ id ';
The server_id of the two servers is different.
Log on
Configure the normal clone firstTwo servers, one master and one standbyPrimary server:10.10.1.30Slave:10.10.1.200Modify the My.cnf file for each machine, modify the server_id separatelymaster server server_id= 1, slave server_id=2Restart the two servers by:Show variables like ' server_id ';You can see that the server_id for both servers are different.Login Master, enter:Grant Replication Slave on * * to ' repl ' @ ' 10.10.1.200 ' identified by ' passw
1> the occurrence of semi-synchronous replication:By default, replication is asynchronous, that is, the client commits the transaction to the main library, and the main library writes the transaction to the storage engine and Binlog and returns it to the client immediately telling them that the transaction executed successfully. If the transaction is not yet replicated to the slave library at this point, if
by taking a snapshot of the data.2. Then turn on replication through the snapshot's master's Binlog file and Pos.Vii. traditional replication log to complement the way:Problem: ( one master two from the structure)When Master1 hung up, need slave1 special master, but found Slave1 Binlog record has reached 100, and slave2 record Binlog only to 90, based on traditional log how to do?Workaround:1, if not use M
Original: The SQL Server updatable subscription has a row filter in the Synchronous replication removal project without reinitialization of all subscriptions!In synchronous replication of updatable subscriptions, there is a row-filtered Item table, which prompts for reinitialization of all snapshots and applies this sn
Here do not repeat the installation of the 5.7 steps, the main attention to the initialization method and configuration files, with a lot of changes, while the 5.7 enhanced security, the initialization will give a password, the first time to change the password to login.OK, nonsense less say, back to the theme, 5.7 of the semi-synchronous strong copy.Semi-synchronous re
'@ '%' by'qwert'; Show master status; The database is then not manipulated. Slave server connection Master, the command is as follows: Stop slave;Change Master toMaster_host='127.0.0.1', Master_port=3306, Master_user='Repl', Master_password='Qwert', Master_log_file='mysql-bin.000001', Master_log_pos= 2388;Start slave;show slave status; Problems that arise: 1, show master status; Show as empty the binary log is not turned on log-bin = ... 2, show slave status; Show Slave I/o: Error co
SQL Server 2008 synchronous replication creates new tables/functions/stored procedures (without reinitialization of snapshots)One, in the production environment already has the transaction replication (the replication type is the transactional publication), needs the existing published database to add the table, the vi
defined, Ip:port would be used. #id: svc_2# sync|mirror, default is sync#type:sync#ip:127.0.0.1#port:8889logger:level:infooutput:log.txtrotate:size:1000000000leveldb:# in MBcache _size:300# in kbblock_size:64# in mbwrite_buffer_size:256# in mbcompaction_speed:100# yes|nocompression:noWork_dir:ssdb-server's working directory, when started, will generate data and meta two directories in this directory to hold LevelDB database files. This directory is a relative path relative to ssdb.conf, or an a
After 5.5 semi-synchronous replication, 5.6 has optimized and improved it. Two of them are important: 1. It should be a big pleasure for O M personnel, after the master-slave switchover, you need to find
After 5.5 semi-synchronous replication, 5.6 has optimized and improved it. Two of them are important: 1. It should
snapshot folder (point to the shared folder that you built in step 3)------ Select the publication database-------Select the publication type-------Select the Subscriber type-------Select the object to publish------set the Snapshot Agent-------fill out the publication name.
3. Right-click Local subscription--------Select the Publisher-------Select a subscription (if it is the server-side subscription Select the push subscription instead of a pull subscription)-------Fill in the Subscriber-----
|nocompression: no
Work_dir: the working directory of ssdb-server. After startup, two directories, data and meta, are generated under this directory to save the database files of LevelDB. this directory is relative to ssdb. the relative path of conf. You can also specify the absolute path.
Server: ip and port specify the IP address and port number of the server to listen. if the ip address is 0.0.0.0, it indicates binding all IP addresses. based on security considerations, you can set the ip a
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.