Last active
February 10, 2018 22:20
-
-
Save jdrago999/362ee009f13556d61ca1bbccea420b71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
# Download and Install the Latest Updates for the OS | |
add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe' | |
apt-get update | |
# Install MySQL Server in a Non-Interactive mode. | |
echo "mysql-server-5.6 mysql-server/root_password password $MYSQL_ROOT_PASSWORD" | sudo debconf-set-selections | |
echo "mysql-server-5.6 mysql-server/root_password_again password $MYSQL_ROOT_PASSWORD" | sudo debconf-set-selections | |
apt-get install -y mysql-server-5.6 | |
sed -i 's/127\.0\.0\.1/0\.0\.0\.0/g' /etc/mysql/my.cnf | |
service mysql stop | |
sleep 10 | |
service mysql start | |
sleep 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment