Created
April 13, 2015 14:49
-
-
Save mahemoff/54b31e272421472d4fb6 to your computer and use it in GitHub Desktop.
MySQL 5.6 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
dependencies: | |
post: | |
- export DEBIAN_FRONTEND=noninteractive | |
- sudo apt-get -y remove mysql-server | |
- sudo apt-get -y autoremove | |
- sudo apt-get -y install software-properties-common | |
- sudo add-apt-repository -y ppa:ondrej/mysql-5.6 | |
- sudo apt-get update | |
- sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password ""' | |
- sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password ""' | |
- sudo apt-get -y install mysql-server |
Hi all,
I took the code from @eexit and change a couple of lines because it wasn't working on my builds, here is my successful attempt, hope it helps.
machine:
pre:
- sudo apt-get update -y; true
- sudo apt-get -y remove mysql-server
- sudo apt-get -y install software-properties-common
- sudo apt-add-repository -y 'deb http://ppa.launchpad.net/ondrej/mysql-experimental/ubuntu precise main'
- sudo apt-get update -y; true
- export DEBIAN_FRONTEND=noninteractive && sudo -E apt-get -y install mysql-server
- sudo chown -R mysql:mysql /var/lib/mysql
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
The code above didn't work because apt would get a bunch of 404 errors.
This worked for me: