Skip to content

Instantly share code, notes, and snippets.

@wagner
Created March 6, 2018 15:40
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 wagner/7a548dc28ea35ab0a8a110da4b6a1119 to your computer and use it in GitHub Desktop.
Save wagner/7a548dc28ea35ab0a8a110da4b6a1119 to your computer and use it in GitHub Desktop.
Instala MySQL 5.7 no Ubuntu
#!/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