Update index.py

This commit is contained in:
midoks 2022-06-12 15:38:43 +08:00
parent b97a5ace21
commit 334240f05c
1 changed files with 1 additions and 0 deletions

View File

@ -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 + \