Skip to content

Instantly share code, notes, and snippets.

@fideloper
Last active April 30, 2016 07:26
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fideloper/008fd8655e2437821584 to your computer and use it in GitHub Desktop.
Save fideloper/008fd8655e2437821584 to your computer and use it in GitHub Desktop.
Install MySQL 5.7 (dev, not general availability)
#!/usr/bin/env bash
ROOT_USER_PASS='root'
sudo apt-get update
sudo apt-get install -y vim curl tmux wget unzip zip htop
sudo apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5
sudo cat > /etc/apt/sources.list.d/mysql.list <<EOL
# You may comment out entries below, but any other modifications may be lost.
# Use command 'dpkg-reconfigure mysql-apt-config' as root for modifications.
deb http://repo.mysql.com/apt/ubuntu/ trusty mysql-apt-config
deb http://repo.mysql.com/apt/ubuntu/ trusty mysql-5.7-dmr
# deb http://repo.mysql.com/apt/ubuntu/ trusty workbench-6.3
# deb http://repo.mysql.com/apt/ubuntu/ trusty connector-python-2.0
# deb http://repo.mysql.com/apt/ubuntu/ trusty mysql-utilities-1.5
EOL
sudo apt-get update
export DEBIAN_FRONTEND="noninteractive"
sudo debconf-set-selections <<< "mysql-community-server mysql-community-server/root-pass password $ROOT_USER_PASS"
sudo debconf-set-selections <<< "mysql-community-server mysql-community-server/re-root-pass password $ROOT_USER_PASS"
sudo apt-get install -y mysql-server
@fideloper
Copy link
Author

For Ubuntu 14.04, Trusty

Usage:

  1. Copy this into a file install.sh
  2. Run sudo bash install.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment