mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -1289,9 +1289,7 @@ def resetDbRootPwd(version):
|
||||
cmd_pass = cmd_pass + "flush privileges;\""
|
||||
|
||||
data = mw.execShell(cmd_pass)
|
||||
# if data[1].find("ERROR") != -1:
|
||||
# print("init mariadb password fail:" + data[1])
|
||||
# exit(1)
|
||||
# print(data)
|
||||
return True
|
||||
|
||||
def fixDbAccess(version):
|
||||
@@ -1310,7 +1308,7 @@ def fixDbAccess(version):
|
||||
appCMD(version, 'stop')
|
||||
openSkipGrantTables()
|
||||
appCMD(version, 'start')
|
||||
|
||||
time.sleep(3)
|
||||
resetDbRootPwd(version)
|
||||
|
||||
appCMD(version, 'stop')
|
||||
|
||||
Reference in New Issue
Block a user