mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user