Update index.py

pull/125/head
midoks 3 years ago
parent 5f82540390
commit 971eb133f0
  1. 3
      plugins/mysql/index.py

@ -386,6 +386,9 @@ def initMysql8Pwd():
pwd = mw.getRandomString(16)
alter_root_pwd = 'flush privileges;'
alter_root_pwd = alter_root_pwd + \
"UPDATE mysql.user SET authentication_string='' WHERE user='root';"
alter_root_pwd = alter_root_pwd + \
"alter user 'root'@'localhost' IDENTIFIED by '" + pwd + "';"
alter_root_pwd = alter_root_pwd + \

Loading…
Cancel
Save