Skip to content

Commit

Permalink
🐞 fix: 修复 8.4.0 版本下建立复制的 bug .
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeky committed Jun 13, 2024
1 parent 61a29de commit da8f3a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dbma/components/mysql/replica.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_change_source_stmt(version: str = None):
str
"""
stmt = "CHANGE REPLICATION SOURCE TO SOURCE_USER='{}', SOURCE_PASSWORD='{}', SOURCE_HOST='{}', SOURCE_PORT={}, SOURCE_AUTO_POSITION=1, SOURCE_SSL=1;"
if not version.startswith("8.0"):
if version.startswith("5.7"):
stmt = "CHANGE REPLICATION MASTER TO MASTER_USER='{}', MASTER_PASSWORD='{}', MASTER_HOST='{}', MASTER_PORT={}, MASTER_AUTO_POSITION=1, MASTER_SSL=1;"
return stmt

Expand All @@ -49,7 +49,7 @@ def get_start_replica_stmt(version: str = None):
str
"""
stmt = "start replica;"
if not version.startswith("8.0"):
if version.startswith("5.7"):
stmt = "start slave;"
return stmt

Expand Down
2 changes: 1 addition & 1 deletion dbma/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

DBM_AGENT_MAJOR_VERSION = 8
DBM_AGENT_MINOR_VERSION = 40
DBM_AGENT_PATCH_VERSION = 0
DBM_AGENT_PATCH_VERSION = 1


# dbm-agent 版本号
Expand Down

0 comments on commit da8f3a5

Please sign in to comment.