This commit is contained in:
Michael RICOIS 2016-12-02 13:49:54 +01:00
parent 96c7ee74bd
commit 023b778150

View File

@ -38,7 +38,7 @@ if [ $VARGANTDEV -eq 1 ]; then
sudo sed -i -e 's/max_connections[ \t]*= 100/max_connections = 20/g' /etc/mysql/my.cnf
sudo service mysql restart
# Création utilisateur universel
mysql -uroot -p$MYSQL_PASS -e "CREATE USER 'roor'@'%' IDENTIFIED BY '$MYSQL_PASS'"
mysql -uroot -p$MYSQL_PASS -e "CREATE USER 'root'@'%' IDENTIFIED BY '$MYSQL_PASS'"
mysql -uroot -p$MYSQL_PASS -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION"
sudo touch /etc/mysql/vagrant
fi