forked from brianmario/mysql2
-
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.
Travis: install mysql-5.7 "manually"
- Loading branch information
Showing
7 changed files
with
24 additions
and
39 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 |
---|---|---|
@@ -1,20 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
|
||
service mysql stop | ||
apt-get purge '^mysql*' 'libmysql*' | ||
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x8C718D3B5072E1F5 | ||
set -eux | ||
|
||
apt-get purge -qq '^mysql*' '^libmysql*' | ||
apt-key adv --keyserver pgp.mit.edu --recv-keys 5072E1F5 | ||
add-apt-repository 'deb http://repo.mysql.com/apt/ubuntu/ trusty mysql-5.7' | ||
apt-get update -qq | ||
apt-get install -qq mysql-server libmysqlclient-dev | ||
|
||
apt-get update | ||
apt-get -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew -y install mysql-server libmysqlclient-dev | ||
|
||
mysql_upgrade -u root --force --upgrade-system-tables | ||
|
||
# Replace the final line of the mysql apparmor, allowing /etc/mysql/*.pem | ||
sed -ie '$ s|}|\ | ||
/etc/mysql/*.pem r,\ | ||
}|' /etc/apparmor.d/usr.sbin.mysqld | ||
service apparmor restart | ||
# https://www.percona.com/blog/2016/03/16/change-user-password-in-mysql-5-7-with-plugin-auth_socket/ | ||
mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ''" |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
set -eux | ||
|
||
# Make sure there is an /etc/mysql | ||
mkdir -p /etc/mysql | ||
|
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
set -eux | ||
|
||
echo " | ||
[ ca ] | ||
|