The ddl and dml operations of the master database on the master server are uploaded to the slaves server through binary logs, and these log files are re-executed on the master server.
The ddl and dml operations of the master database on the master server are uploaded to the
Examples of this article for everyone to share the PHP remote download class, as follows
"; foreach ($this->m_httphead as $k = + $v) {echo "$k + $v\ r \ n "; }}/** * Determine if the answer to the header sent with the Get method is correct */public function Isgetok () {if (Ereg ("^2", $this->gethead ("Http-state")) {return T Rue } else {$this->m_error. = $this->gethead ("Http-state"). "-". $this->gethead ("Http-describe"). ""; return false; }}/** *
1. Prepared hostNode1: 172.16.133.11Node2: 172.16.133.12MySQL has been installed.MySQL installation see: http://5142926.blog.51cto.com/5132926/9356522. mysql master-slave ReplicationNode1: master serverNode2: slave server(1) node1:Enable binary log (enabled by default)Create a user with the copy permissionSet server-idNode2:Enable relay logs (disabled by default. You can manually disable binary logs if not
Five steps to master the basic development and usage commands of Git, and five steps to master git commandsStep 1: set global variables:
git config --global user.name "gang.li"git config --global user.email "ligang@ptthink.com"Step 2: Initialize the repository and push it to the remote repository (if this step is performed for the first push, otherwise skip this
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 selinux.
Tutorial Description: There are two hosts in this experiment, and IP addresses are allocated as topology.
Experimental software:
MYSQL usage experience (8)-configuration and recovery of online master-slave replication cluster and online execution of master-slave configuration FLUSHTABLESWITHREADLOCK; UNLOCKTABLES; there is a master.info file under the slave database data folder, is unique from the machine. Reset slave Database: used to make the slave server forget its binary log in the master
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
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,
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
the corresponding master database
Grant replication slave on *. * to "repl '@' % 'identified by 'sangfordb ';
Flush privileges;
Then stop slave and start slave again.
2. Slave_IO_State: connecting to master
Solution:
The reason is that this account cannot connect to the master database. Can I view the remote login of
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 services servicemysqld3307stop; servicemysqld
Object Introduction:
Windows 8 Remote Desktop
Remote Desktop tools with Windows systems are not available in every release. In fact, Microsoft says, Remote Desktop is available only to WINDOWS8 Professional and WINDOWS8 Enterprise editions. The WINDOWS8 and WINDOWS8RT editions do not have this option.
Sunflower Remote
-IGNORE-DB copy of the database that needs to be excluded, I used this. All databases are replicated except for a few databases in the system.Relay_log the name of the trunk log. As mentioned earlier, the replication thread needs to copy the remote changes to this trunk log before executing.Log-slave-updates means that these changes need to be counted into their own binarylog after the relay log is executed. When your B server needs to be a
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: slave.
1. Prepared hostNode1: 172.16.133.11Node2: 172.16.133.12MySQL has been i
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.