Update index.py

pull/109/head
midoks 3 years ago
parent 893be94261
commit 544435d9b0
  1. 3
      plugins/mysql/index.py

@ -374,8 +374,7 @@ def initMysql8Pwd():
tmp_file = "/tmp/mysql_init_tmp.log"
mw.writeFile(tmp_file, alter_root_pwd)
cmd_pass = serverdir + '/bin/mysql -uroot -p"' + \
password + '" < ' + tmp_file
cmd_pass = serverdir + '/bin/mysql -uroot -proot < ' + tmp_file
data = mw.execShell(cmd_pass)
# print(data)

Loading…
Cancel
Save