Feature/changed mysql replication command #53
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
Issue: #10
Problem
Since the
SHOW SLAVE HOSTS
statement was deprecated from MySQL 8.0.22[1], the MySQL variableslave_uuid
is also be deprecated.Solution
To ensure version compatibility, both the
replica_uuid
andslave_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 toserver_uuid
, as it encapsulates the meanings of bothslave_uuid
andreplica_uuid
.[1] SHOW SLAVE HOSTS | SHOW REPLICAS Statement (MySQL Docs)
[2] Set slave_uuid and replica_uuid (go-mysql-org/go-mysql)