summaryrefslogtreecommitdiffstats
path: root/vagrant_scripts/my55_bootstrap.sh
blob: 74763ba3320b62cfeb612729b0e981a8a1577cd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

apt-get --yes update
apt-get --yes upgrade

mkdir -p /etc/mysql/conf.d

echo mysql-server-5.5 mysql-server/root_password password password | sudo debconf-set-selections
echo mysql-server-5.5 mysql-server/root_password_again password password | sudo debconf-set-selections

apt-get --yes install mysql-server-5.5 mysql-client-5.5

cat /vagrant/src/main/resources/db/mysql/my.cnf >> /etc/mysql/my.cnf

service mysql restart

echo "grant all privileges on *.* to root@'%' identified by 'password' with grant option;" | /usr/bin/mysql -u root -ppassword