Update index.py

This commit is contained in:
Mr Chen
2023-12-22 01:01:46 +08:00
parent 3a80a27970
commit 4bfec3ac06
+2 -4
View File
@@ -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')