Skip to content

'slave_uuid' was deprecated from MySQL 8.0.22 #429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

soulee-dev
Copy link
Contributor

Issue

Issue: #428 (SHOW SLAVE HOSTS was deprecated from MySQL 8.0.22)

Problem

Since the SHOW SLAVE HOSTS statement was deprecated from MySQL 8.0.22[1], the MySQL variable slave_uuid is also be deprecated.

Solution

To ensure version compatibility, both the replica_uuid and slave_uuid variables will be set to the MySQL Server.

This approach aligns with what was done in go-mysql[2].

Additional Consideration

It would be prudent to change the name of the slave_uuid attribute to server_uuid, as it encapsulates the meanings of both slave_uuid and replica_uuid.


[1] SHOW SLAVE HOSTS | SHOW REPLICAS Statement (MySQL Docs)
[2] Set slave_uuid and replica_uuid (go-mysql-org/go-mysql)

dongwook-chan

This comment was marked as off-topic.

@julien-duponchelle
Copy link
Owner

I like the addtional consideration it seem a good idea

@julien-duponchelle julien-duponchelle merged commit 558444e into julien-duponchelle:main Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants