同步问题

This commit is contained in:
Mr Chen
2024-05-17 05:01:39 +08:00
parent 310409c52b
commit 2b8804e960
2 changed files with 53 additions and 15 deletions
+12 -1
View File
@@ -1,4 +1,15 @@
```
show global variables like '%gtid%';
show global variables like 'server_uuid';
```
show global variables like 'server_uuid';
```
# 不锁表,需要删除原来数据表
# tables = db.query('show tables from `%s`' % sync_db_import)
# table_key = "Tables_in_" + sync_db_import
# for tname in tables:
# drop_db_cmd = 'drop table if exists '+sync_db_import+'.'+tname[table_key]
# # print(drop_db_cmd)
# db.query(drop_db_cmd)
```