Commit fd6ba6a4 authored by anarcat's avatar anarcat Committed by anarcat

grant ALL PRIVILEGES instead of just create/drop to the mysql root user as the...

grant ALL PRIVILEGES instead of just create/drop to the mysql root user as the latter is not sufficient to create mysql users. do not flush privileges as GRANT already does that.
parent aad2c849
......@@ -33,12 +33,9 @@ function _provision_mysql_user_requirements() {
$command = <<<EOF
[$username@hm2 ~]$ mysql -uroot -pXXXXXXXXX mysql
mysql> grant create, drop, grant option on *.* to 'username_here'@'localhost'
-> identified by 'mypassword';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'username_here'@'localhost' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
EOF;
$help['title'] = t('Mysql user account capable of creating new databases.');
$help['summary'] = t('To be able to create new sites, the provisioning framework will need to be able
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment