diff --git a/plugins/mariadb/index.py b/plugins/mariadb/index.py index 55b0f92b7..066062b23 100755 --- a/plugins/mariadb/index.py +++ b/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;\""