In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
The commonly used master_log_file,master_log_pos replication method will cause data inconsistency when the main database is down.
Mariadb10.x supports GTID replication by default.
1. Unsupported parameter
Gtid-mode=on
Enforce-gtid-consistency=true
two。 Modified parameter
Parameter slave-parallel-workers is changed to slave-parallel-threads.
3. Commands used to connect to the main service
Added: master_use_gtid= current_pos | slave_pos | no
Configure the master-slave replication mode:
Method 1: traditional method CHANGE MASTER TOMASTER_HOST='10.0.22.248',MASTER_PORT=3306,MASTER_USER='liuwei',MASTER_PASSWORD='123456',MASTER_LOG_FILE='mysql-bin.000024',MASTER_LOG_POS=875; method 2: MASTER_USE_GTID way CHANGE MASTER TOMASTER_HOST='10.0.22.248',MASTER_PORT=3306,MASTER_USER='liuwei',MASTER_PASSWORD='123456',MASTER_USE_GTID=slave_pos
A more detailed introduction to GTID:
Reference: http://www.tuicool.com/articles/raaMfeV
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.