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

What if the repetition of Last_IO_Errno: 1593 server-uuid in MySQL causes slave to report an error

2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the MySQL Last_IO_Errno: 1593 server-uuid repeated slave error report how to do, the article is very detailed, has a certain reference value, interested friends must read it!

[problem description]:

An error was found on the slave library:

Mysql > SHOW SLAVE STATUS\ G

...

Last_IO_Errno: 1593

Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have equal MySQL server UUIDs; these UUIDs must be different for replication to work.

...

The error message is clear that the uuid of master is equal to the uuid of slave, and the uuid must be different for replication to take effect.

View each of the two libraries:

Mysql > SHOW VARIABLES LIKE'% server_%'

+-+

| | Variable_name | Value |

+-+

| | innodb_ft_server_stopword_table |

| | server_id | 11 | |

| | server_id_bits | 32 | |

| | server_uuid | feac17c0-d55e-11e5-b426-525400079dc4 |

+-+

4 rows in set (0.00 sec)

Mysql > SHOW VARIABLES LIKE'% server_%'

+-+

| | Variable_name | Value |

+-+

| | innodb_ft_server_stopword_table |

| | server_id | 22 | |

| | server_id_bits | 32 | |

| | server_uuid | feac17c0-d55e-11e5-b426-525400079dc4 |

+-+

4 rows in set (0.00 sec)

The reason for this:

Take the virtual machine to do the experiment, the first installed mysql-server, and then directly take the first copy into the second.

Causes the content in $datadir/auto.cnf to be consistent:

[auto]

Server_uuid= xxxxxxxx

[solution]:

What I do is randomly copy and modify the value generated by a uuid () function:

Mysql > SELECT uuid ()

However, this parameter is static, so you need to restart mysql.

The above is all the content of the article "Last_IO_Errno: 1593 server-uuid repetition causes slave error in MySQL". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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: 278

*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