-
-
Save toshimaru/06ffbf2e8ad7d4e3dab889fa27681835 to your computer and use it in GitHub Desktop.
Install MySQL 5.7 non-interactively in CircleCI
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 | |
set -x | |
set -e | |
export DEBIAN_FRONTEND=noninteractive | |
curl -LO https://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb | |
echo mysql-apt-config mysql-apt-config/select-product select Apply | sudo debconf-set-selections | |
echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | sudo debconf-set-selections | |
echo mysql-apt-config mysql-apt-config/select-connector-python select none | sudo debconf-set-selections | |
echo mysql-apt-config mysql-apt-config/select-workbench select none | sudo debconf-set-selections | |
echo mysql-apt-config mysql-apt-config/select-utilities select none | sudo debconf-set-selections | |
echo mysql-apt-config mysql-apt-config/select-connector-odbc select connector-odbc-x.x | sudo debconf-set-selections | |
sudo -E dpkg -i mysql-apt-config_0.7.3-1_all.deb | |
sudo apt-get update | |
echo mysql-community-server mysql-community-server/re-root-pass password ${mysql_root_password} | sudo debconf-set-selections | |
echo mysql-community-server mysql-community-server/root-pass password ${mysql_root_password} | sudo debconf-set-selections | |
sudo -E apt-get -y install mysql-community-server | |
echo "Checking installed version....." | |
mysql -D mysql -e "SELECT version()" | |
echo "Done!!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment