forked from doctrine/dbal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request doctrine#2764 from zghosts/add-mysql-5.6-5.7-to-tr…
…avis Add mysql versions 5.6 and 5.7 to travis-ci Fixes doctrine#2755 Fixes doctrine#2757
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
echo "Installing MySQL 5.7..." | ||
|
||
sudo service mysql stop | ||
sudo apt-get remove "^mysql.*" | ||
sudo apt-get autoremove | ||
sudo apt-get autoclean | ||
echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | sudo debconf-set-selections | ||
wget http://dev.mysql.com/get/mysql-apt-config_0.8.6-1_all.deb | ||
sudo DEBIAN_FRONTEND=noninteractive dpkg -i mysql-apt-config_0.8.6-1_all.deb | ||
sudo rm -rf /var/lib/apt/lists/* | ||
sudo apt-get clean | ||
sudo apt-get update -q | ||
sudo apt-get install -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" mysql-server libmysqlclient-dev | ||
sudo mysql_upgrade | ||
|
||
echo "Restart mysql..." | ||
sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;" | ||
|