Update index.py

This commit is contained in:
midoks
2022-07-06 14:47:53 +08:00
parent df44ef08ca
commit 5afb7c079a
+1 -1
View File
@@ -310,7 +310,7 @@ def initMysql8Pwd():
tmp_file = "/tmp/mysql_ya_init_tmp.log"
mw.writeFile(tmp_file, alter_root_pwd)
cmd_pass = 'mysql --defaults-file=' + \
getServerDir() + ' -uroot -proot < ' + tmp_file
getServerDir() + '/etc/my.cnf -uroot -proot < ' + tmp_file
data = mw.execShell(cmd_pass)
# print(data)