Update index.py

This commit is contained in:
midoks
2022-06-12 16:33:03 +08:00
parent a058657b46
commit 6f20b46acd
+3 -2
View File
@@ -327,8 +327,9 @@ def initMysql8Pwd():
# with mysql_native_password
alter_root_pwd = "flush privileges;"
alter_root_pwd = alter_root_pwd + \
"alter user 'root'@'localhost' IDENTIFIED WITH mysql_native_password by '" + pwd + "';"
alter_root_pwd = alter_root_pwd + "set password='" + pwd + "';"
# alter_root_pwd = alter_root_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"