Sha256: a150731b2e04e3ba1c0fc7618fd9838ccf41f8e17e11099d9e223f5e3c6c1278
Contents?: true
Size: 412 Bytes
Versions: 6
Compression:
Stored size: 412 Bytes
Contents
#!/bin/bash set -e user=$1 password=$2 user='vagrant' password='vagrant' sed -i 's/127.0.0.1/0.0.0.0/' /etc/mysql/my.cnf mysqld& sleep 3 mysqladmin -u root password $password echo "create user '${user}'@'%' identified by '${password}'" | mysql -u root -p$password echo "grant all on *.* to '${user}'@'%' with grant option" | mysql -u root -p$password echo "FLUSH PRIVILEGES;" | mysql -uroot -p${password}
Version data entries
6 entries across 6 versions & 1 rubygems