In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the relevant knowledge of "what is the working principle of mysql group replication". In the operation of actual cases, many people will encounter this dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Description
1. A replication group consists of multiple server members, and each server member in the group can execute transactions independently.
2. All read-write (RW) transactions are committed only after conflict detection is successful. Read-only (RO) transactions do not require conflict detection and can be committed immediately.
GroupReplication (replication Group) consists of multiple servers (nodes) that can communicate with each other.
Groupreplication implements a series of mechanisms in the communication layer, such as atomic message (atomicmessagelivery) and fully ordered message (totalorderingofmessages). These atomization and abstraction mechanisms provide strong support for the implementation of more advanced database replication schemes.
Example
Mysql > SET SQL_LOG_BIN=0;mysql > alter user root@localhost identified by 'WESTOS.com123'; # # change password mysql > grant REPLICATION SLAVE ON *. * TO rpl_user@'%' IDENTIFIED BY' WESTOS.com123'; # # Authorization mysql > FLUSH PRIVILEGES; # # Refresh system permission Table mysql > SET SQL_LOG_BIN=1; # # Open binary log mysql > CHANGE MASTER TO MASTER_USER='rpl_user',MASTER_PASSWORD='WESTOS.com123' FOR CHANNEL 'group_replication_recovery' Mysql > INSTALL PLUGIN group_replication SONAME 'group_replication.so'; # # install the group replication plug-in mysql > SET GLOBAL group_replication_bootstrap_group=ON; # # only server5 does this step mysql > START GROUP_REPLICATION; # # enable group replication mysql > SET GLOBAL group_replication_bootstrap_group=OFF;mysql > SELECT * FROM performance_schema.replication_group_members; # # View group replication information "how group replication works" is introduced here, thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.