mdserver-web/plugins/mysql
dami 7b5d2820ca up 2025-07-02 23:05:45 +08:00
..
bak
conf up 2025-07-02 23:05:45 +08:00
init.d
js
lib
patch
scripts
versions
README.md
ico.png
index.html
index.py update 2025-07-02 23:00:48 +08:00
index_mysql.py
info.json Update info.json 2025-03-25 12:26:05 +08:00
install.sh update 2025-06-25 16:32:59 +08:00

README.md

show global  variables like '%gtid%';
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)
# 修改同步位置
# master_info = sync_mdb.query('show master status')
# slave_info = db.query('show slave status')
# if len(master_info)>0:
#     channel_name = slave_info[0]['Channel_Name']
#     change_cmd = "CHANGE MASTER TO  MASTER_LOG_FILE='"+master_info[0]['File']+"', MASTER_LOG_POS="+str(master_info[0]['Position'])+" for channel '"+channel_name+"';"
#     print(change_cmd)
#     r = db.execute(change_cmd)
#     print(r)