Update index.py

pull/109/head
midoks 3 years ago
parent c0a39faced
commit a058657b46
  1. 3
      plugins/mysql/index.py

@ -333,7 +333,8 @@ def initMysql8Pwd():
# r = dbcurr.execute(alter_root_pwd)
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 --connect-expired-password -uroot -p"' + \
password + '" < ' + tmp_file
print(cmd_pass)
print(mw.execShell(cmd_pass))
pSqliteDb('config').where('id=?', (1,)).save('mysql_root', (pwd,))

Loading…
Cancel
Save