Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/sh
export DEBIAN_FRONTEND=noninteractive
sudo rm -rf /etc/apt/sources.list.d/mysql.list
sudo add-apt-repository -y ppa:ondrej/mysql-5.5
sudo debconf-set-selections <<< "mysql-community-server mysql-community-server/remove-data-dir boolean true"
sudo apt-get remove --purge -y mysql-client mysql-common mysql-community-client mysql-community-server mysql-server php5-mysql libmysqlclient-dev libmysqlclient18
sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo -E bash -c 'apt-get -y --force-yes install mysql-server libmysqlclient-dev'
mysqladmin -u root password semaphoredb
echo "MySQL version: `mysql --version`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.