Last active
November 7, 2018 21:22
-
-
Save brunoadacosta/e04a23f577600dacb1a33d7f68a93de2 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 | |
data_dir="/usr/data" | |
sudo mkdir $data_dir | |
sudo chown mysql:mysql $data_dir | |
echo "deb http://repo.mysql.com/apt/ubuntu/ trusty mysql-5.7" | sudo tee /etc/apt/sources.list.d/mysql57.list | |
sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/mysql57.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" | |
touch /tmp/.apt_update_ran | |
install-package libmysqlclient-dev mysql-community-server -o Dpkg::Options::="--force-confnew" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment