Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Solutions to common errors in master-slave synchronization of MySQL 2

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

The screenshot of the error is as follows:

This error belongs to the SQL thread because the file path in relay- index.index and relay-log does not match.

Solution:

Mysql > stop slave

Mysql > reset slave

Reassign the main library information

Mysql > change master to

Master_host= "main Library ip address"

Master_user= "authorized user"

Master_log_file= "binlog"

Master_log_pos= offset

Mysql > start slave

Check the following slave status at this time to return to normal

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report