From 7fa7ee67706000bc4bd1db993b47663f9c627f0e Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 7 Nov 2022 10:13:30 +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 55b177348..cf0cf6c71 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -407,7 +407,7 @@ def initMysqlPwd(): myconf = serverdir + "/etc/my.cnf" pwd = mw.getRandomString(16) - cmd_pass = serverdir + '/bin/mysql -uroot -e' + cmd_pass = serverdir + '/bin/mysql --defaults-file=' + myconf + ' -uroot -e' cmd_pass = cmd_pass + \ '"UPDATE mysql.user SET password=PASSWORD(\'' + \ pwd + "') WHERE user='root';"