From 334240f05cd73e1eaefe515fa3c5060421b8fd73 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 12 Jun 2022 15:38:43 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 1c0fed030..bedb85499 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -324,6 +324,7 @@ def initMysql8Pwd(): "/data/error.log | grep root@localhost | awk -F 'root@localhost:' '{print $2}'" passdata = mw.execShell(pass_cmd) password = passdata[0].strip() + # with mysql_native_password alter_root_pwd = "flush privileges;" alter_root_pwd = alter_root_pwd + \