First, MySQL multi-instance IntroductionOpen several different service ports (3306,33307,3308) on one server, run multiple MySQL service processes, share a set of MySQL installers, multi-instance MySQL is logically independent1, multi-instance
Log-bin binary LogServer-id early version must be added 1-pow (2,32)-1 recommended port number +IP Last 5.6 can be modified dynamicallyServer-uuid (after 5.6) The default exists $datadir/AUTO.CNF can be modified dynamically after 5.6Log-bin-index
MySQL replication is a very important feature of MySQL, which is mainly used for data copy operation between the primary server and the slave server. MySQL replication refers to the process of copying data from one MySQL master server (master) to
First, MySQL master-slave Replication IntroductionThe master-slave copy of MySQL is not a direct copy of the file on the database disk, but is replicated to the server to be synchronized by the logical Binlog log.The local thread then reads the SQL
Due to background reasons, the master-slave synchronization is to be based on the MySQL 5.1 version, master-slave synchronization is mainly a database read and write access to the original database heat is too large, need to be used from the library
MySQL's master-slave is an asynchronous replication process, which is actually a process of copying data from the master to the slave end. The entire replication process between Master and Slave is performed primarily by three threads, of which two
MySQL Multi-instanceThe simple thing is to open several different service ports (such as 3306,3307, etc.) on a single machine to run multiple MySQL service processes, which provide their own services through different sockets that listen to
I. On-line installationYum List | grep MySQLDisplays the version information for MySQL on the Yum serverInstall with the following command:Yum install-y mysql-server MySQL mysql-develAfter the installation is complete, view the installed version
One, what is MySQL multi-instanceThe simple thing is to open several different service ports on a single machine (for example: 3306, 3307) and run multiple MySQL service processes that provide their own services through different sockets that listen
MySQL cluster, MySQL master-slave architecture, MySQL load balancerMySQL Master-Slave synchronizationPrinciple:Replication ThreadsMySQL Replication is an asynchronous copy process, copied from one MySQL instace (we call Master) to another MySQL
I. Source of the probleminstall MySQL If you can install one manually, but install multiple, manual installation is cumbersome, you need to write a shell program install_mysql.sh to install
Two. Procedural notesInstall the MySQL5.1.45 to
Mysql
6.8 Sync startup options
Whether it's master or slave, set the Server-id option to make sure they all have their own unique sync IDs. You must select a positive integer between 1 and 2^32-1. For example: server-id=3.
For a detailed
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.