src/Pure/Tools/phabricator.scala
changeset 72522 6e27af808c17
parent 72521 354bfab78cbf
child 72523 0d3b623db61a
equal deleted inserted replaced
72521:354bfab78cbf 72522:6e27af808c17
   370       Bash.string(
   370       Bash.string(
   371         """DROP USER IF EXISTS """ + mysql_user_string + "; " +
   371         """DROP USER IF EXISTS """ + mysql_user_string + "; " +
   372         """CREATE USER """ + mysql_user_string +
   372         """CREATE USER """ + mysql_user_string +
   373         """ IDENTIFIED BY """ + SQL.string(mysql_password) + """ PASSWORD EXPIRE NEVER; """ +
   373         """ IDENTIFIED BY """ + SQL.string(mysql_password) + """ PASSWORD EXPIRE NEVER; """ +
   374         """GRANT ALL ON `""" + (mysql_name + "_%").replace("_", "\\_") +
   374         """GRANT ALL ON `""" + (mysql_name + "_%").replace("_", "\\_") +
   375         """`.* TO """ + mysql_user_string + ";")).check
   375         """`.* TO """ + mysql_user_string + ";" +
       
   376         """GRANT PROCESS ON *.* TO """ + mysql_user_string + ";")).check
   376 
   377 
   377     config.execute("config set mysql.user " + Bash.string(mysql_name))
   378     config.execute("config set mysql.user " + Bash.string(mysql_name))
   378     config.execute("config set mysql.pass " + Bash.string(mysql_password))
   379     config.execute("config set mysql.pass " + Bash.string(mysql_password))
   379 
   380 
   380     config.execute("config set phabricator.cache-namespace " + Bash.string(mysql_name))
   381     config.execute("config set phabricator.cache-namespace " + Bash.string(mysql_name))