Skip to content

Commit

Permalink
Fix MySQL tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Dec 3, 2019
1 parent b9af079 commit 52d8cf1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 44 deletions.
25 changes: 0 additions & 25 deletions travis/install-mysql-5.7.sh

This file was deleted.

20 changes: 1 addition & 19 deletions travis/install-mysql-8.0.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
set -e

# https://askubuntu.com/questions/1065231/dpkg-deb-error-archive-has-premature-member-control-tar-xz-before-contr
sudo apt-get clean
sudo apt-get update -q
sudo apt-get install dpkg

# https://github.com/git-lfs/git-lfs/issues/3474#issuecomment-454237261
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157

# https://askubuntu.com/questions/489815/cannot-install-mysql-server-5-5-the-following-packages-have-unmet-dependicies
sudo apt-get purge mysql-client-core-5.6
sudo apt-get autoremove
sudo apt-get autoclean

sudo apt-get purge mysql-client-core-5.5
sudo apt-get autoremove
sudo apt-get autoclean

echo mysql-apt-config mysql-apt-config/select-server select mysql-8.0 | sudo debconf-set-selections
wget https://dev.mysql.com/get/mysql-apt-config_0.8.14-1_all.deb
sudo dpkg --install mysql-apt-config_0.8.14-1_all.deb
sudo apt-get update -q
sudo apt-get install -q -y --force-yes -o Dpkg::Options::=--force-confnew mysql-server
sudo /etc/init.d/mysql start
sudo mysql_upgrade

0 comments on commit 52d8cf1

Please sign in to comment.