From 9da7470b4ef279686f2a73cd5fa64b72d52277ed Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 4 Nov 2022 23:47:43 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index a8d7d09ed..083b6f750 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -416,7 +416,7 @@ def initMysqlPwd(): # pwd + "') WHERE user='root'" cmd_pass = serverdir + '/bin/mysql -uroot -e' cmd_pass = cmd_pass + \ - '"UPDATE mysql.user SET password=PASSWORD(' + \ + '"UPDATE mysql.user SET password=PASSWORD(\'' + \ pwd + "') WHERE user='root';" cmd_pass = cmd_pass + 'flush privileges;"' data = mw.execShell(cmd_pass)