-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Travis CI tests on MySQL 8.0 #3372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
echo "Installing MySQL 8.0..." | ||
|
||
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.10-1_all.deb | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use Docker container instead of arbitrary 3rd-party debfile. As done in #3183. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not familiar with Docker, however for the record this isn't an arbitrary debfile, this is MySQL's official APT repository. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given the nature of APT repositories, it's not a good idea to depend on a debfile as debfiles may randomly disappear when they get superseded by newer version. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that MySQL 5.7 is already installed using MySQL's APT repo. If you move to Docker, then this one should be updated as well for consistency. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure. |
||
sudo dpkg --install mysql-apt-config_0.8.10-1_all.deb | ||
sudo apt-get update -q | ||
sudo apt-get install -q -y --force-yes -o Dpkg::Options::=--force-confnew mysql-server | ||
echo -e "[mysqld]\ndefault_authentication_plugin=mysql_native_password" | sudo tee --append /etc/mysql/my.cnf | ||
sudo /etc/init.d/mysql start | ||
sudo mysql_upgrade | ||
|
||
mysql --version |
Uh oh!
There was an error while loading. Please reload this page.