Last active
April 30, 2016 07:26
-
-
Save fideloper/008fd8655e2437821584 to your computer and use it in GitHub Desktop.
Install MySQL 5.7 (dev, not general availability)
This file contains hidden or 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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Ubuntu 14.04, Trusty
Usage:
install.sh
sudo bash install.sh