Update index.py

pull/125/head
midoks 3 years ago
parent e8b9c5c33d
commit 44f71ed823
  1. 2
      plugins/mariadb/index.py

@ -309,7 +309,7 @@ def initMysqlPwd():
# cmd_pass = cmd_pass + \
# "UPDATE mysql.user SET password=PASSWORD('" + \
# pwd + "') WHERE user='root'"
cmd_pass = serverdir + '/bin/mysql -uroot -e'
cmd_pass = serverdir + '/bin/mysql -S ' + serverdir + '/mysql.sock -uroot -e'
cmd_pass = cmd_pass + \
"\"grant all privileges on *.* to 'root'@'localhost' identified by '" + pwd + "';"
cmd_pass = cmd_pass + "flush privileges;\""

Loading…
Cancel
Save