Skip to content

Instantly share code, notes, and snippets.

@jdrago999
Last active February 10, 2018 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdrago999/362ee009f13556d61ca1bbccea420b71 to your computer and use it in GitHub Desktop.
Save jdrago999/362ee009f13556d61ca1bbccea420b71 to your computer and use it in GitHub Desktop.
#!/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