|
|
@ -309,7 +309,7 @@ def initMysqlPwd(): |
|
|
|
# cmd_pass = cmd_pass + \ |
|
|
|
# cmd_pass = cmd_pass + \ |
|
|
|
# "UPDATE mysql.user SET password=PASSWORD('" + \ |
|
|
|
# "UPDATE mysql.user SET password=PASSWORD('" + \ |
|
|
|
# pwd + "') WHERE user='root'" |
|
|
|
# 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 + \ |
|
|
|
cmd_pass = cmd_pass + \ |
|
|
|
"\"grant all privileges on *.* to 'root'@'localhost' identified by '" + pwd + "';" |
|
|
|
"\"grant all privileges on *.* to 'root'@'localhost' identified by '" + pwd + "';" |
|
|
|
cmd_pass = cmd_pass + "flush privileges;\"" |
|
|
|
cmd_pass = cmd_pass + "flush privileges;\"" |
|
|
|