From c0a39facedf0a8554626525ef06fb304e6d21f9b Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 12 Jun 2022 16:28: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 6ce86062a..579d15436 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -328,7 +328,7 @@ def initMysql8Pwd(): # with mysql_native_password alter_root_pwd = "flush privileges;" alter_root_pwd = alter_root_pwd + \ - "alter user 'root'@'localhost' identified by '" + pwd + "';" + "alter user 'root'@'localhost' IDENTIFIED WITH mysql_native_password by '" + pwd + "';" alter_root_pwd = alter_root_pwd + "flush privileges;" # r = dbcurr.execute(alter_root_pwd) tmp_file = "/tmp/mysql_init_tmp.log"