mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update index.py
This commit is contained in:
@@ -923,8 +923,14 @@ def importDbExternal():
|
||||
my_cnf = getConf()
|
||||
|
||||
myPass(True, pwd)
|
||||
|
||||
mode = recognizeDbMode()
|
||||
gtid_option = ''
|
||||
if mode == 'gtid':
|
||||
gtid_option = ' --set-gtid-purged=off '
|
||||
|
||||
mysql_cmd = getServerDir() + '/bin/mysql --defaults-file=' + my_cnf + \
|
||||
' -uroot -p\"' + pwd + '\" -f ' + name + ' < ' + import_sql
|
||||
gtid_option + ' -uroot -p\"' + pwd + '\" -f ' + name + ' < ' + import_sql
|
||||
|
||||
# print(mysql_cmd)
|
||||
rdata = mw.execShell(mysql_cmd)
|
||||
|
||||
Reference in New Issue
Block a user