Update index.py

pull/109/head
midoks 3 years ago
parent bf9c85a210
commit b4fe6062a7
  1. 5
      plugins/mysql/index.py

@ -403,6 +403,8 @@ def my8cmd(version, method):
# mysql 8.0 and 5.7
init_file = initDreplace(version)
isInited = 0
try:
if version == '5.7':
isInited = initMysql57Data()
elif version == '8.0':
@ -414,8 +416,9 @@ def my8cmd(version, method):
mw.execShell('systemctl stop mysql')
mw.execShell('systemctl ' + method + ' mysql')
return 'ok'
except Exception as e:
return str(e)
def appCMD(version, action):

Loading…
Cancel
Save