From 544435d9b079ae89f03847f8e0796c69367aff79 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 23 Jun 2022 23:37:06 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index b8d037c55..05bdd1d53 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -374,8 +374,7 @@ def initMysql8Pwd(): tmp_file = "/tmp/mysql_init_tmp.log" mw.writeFile(tmp_file, alter_root_pwd) - cmd_pass = serverdir + '/bin/mysql -uroot -p"' + \ - password + '" < ' + tmp_file + cmd_pass = serverdir + '/bin/mysql -uroot -proot < ' + tmp_file data = mw.execShell(cmd_pass) # print(data)