Created
March 6, 2018 15:40
-
-
Save wagner/7a548dc28ea35ab0a8a110da4b6a1119 to your computer and use it in GitHub Desktop.
Instala MySQL 5.7 no Ubuntu
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 mysql-server -o Dpkg::Options::="--force-confnew" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment