From 4bfec3ac06f435159ac403e9e285528b93c2b3cb Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 22 Dec 2023 01:01:46 +0800 Subject: [PATCH] Update index.py --- plugins/mariadb/index.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/mariadb/index.py b/plugins/mariadb/index.py index 419ddf0c1..fc28e1e8f 100755 --- a/plugins/mariadb/index.py +++ b/plugins/mariadb/index.py @@ -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')