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