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 > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to clear MySQL replication". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to clear MySQL replication".
1. Operations on Slave
Mysql > show slave status\ G
* * 1. Row *
Slave_IO_State:
Master_Host: 192.168.56.100
Master_User: repliform
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysqld-bin.000001
Read_Master_Log_Pos: 1458
Relay_Log_File: localhost-relay-bin.000003
Relay_Log_Pos: 4
Relay_Master_Log_File: mysqld-bin.000001
Slave_IO_Running: No
Slave_SQL_Running: Yes
Mysql > stop slave
Query OK, 0 rows affected (0.01 sec)
Clear replication settin
Mysql > reset slave all
Query OK, 0 rows affected (0.07 sec)
Mysql > show slave status\ G
Empty set (0.00 sec)
Delete replication user
Mysql > drop user repliform@'%'
Mysql > flush privileges
2. Operations on Master
Delete replication user
Mysql > drop user repliform@'%'
Mysql > flush privileges
Thank you for your reading, the above is the content of "how to clear MySQL replication", after the study of this article, I believe you have a deeper understanding of how to clear MySQL replication, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.