From e8b5f581652f7ff3d6cb7bb7401a9aa37dfae6d3 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 6 Jul 2022 14:33:55 +0800 Subject: [PATCH] Update index.py --- plugins/mysql-ya/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/mysql-ya/index.py b/plugins/mysql-ya/index.py index 3d3c3d1bb..0dea0dad0 100755 --- a/plugins/mysql-ya/index.py +++ b/plugins/mysql-ya/index.py @@ -309,7 +309,8 @@ def initMysql8Pwd(): tmp_file = "/tmp/mysql_ya_init_tmp.log" mw.writeFile(tmp_file, alter_root_pwd) - cmd_pass = 'mysql ' + getServerDir() + ' -uroot -proot < ' + tmp_file + cmd_pass = 'mysql --defaults-file=' + \ + getServerDir() + ' -uroot -proot < ' + tmp_file data = mw.execShell(cmd_pass) # print(data)