Update index.py

pull/121/head
midoks 3 years ago
parent b1dff813bc
commit e8b5f58165
  1. 3
      plugins/mysql-ya/index.py

@ -309,7 +309,8 @@ def initMysql8Pwd():
tmp_file = "/tmp/mysql_ya_init_tmp.log"
mw.writeFile(tmp_file, alter_root_pwd)
cmd_pass = 'mysql ' + getServerDir() + ' -uroot -proot < ' + tmp_file
cmd_pass = 'mysql --defaults-file=' + \
getServerDir() + ' -uroot -proot < ' + tmp_file
data = mw.execShell(cmd_pass)
# print(data)

Loading…
Cancel
Save