-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mysql 8.4 support and Stream log output (#407)
- Loading branch information
1 parent
924920e
commit dfdd50b
Showing
4 changed files
with
47 additions
and
5 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
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,27 @@ | ||
#!/bin/bash | ||
|
||
sudo DEBIAN_FRONTEND=noninteractive apt-get update | ||
|
||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y lsb-release | ||
|
||
DEBIAN_FRONTEND=noninteractive wget https://dev.mysql.com/get/mysql-apt-config_0.8.32-1_all.deb | ||
|
||
sudo DEBIAN_FRONTEND=noninteractive dpkg -i mysql-apt-config_0.8.32-1_all.deb | ||
|
||
sudo DEBIAN_FRONTEND=noninteractive apt-get update | ||
|
||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server | ||
|
||
sudo systemctl unmask mysql.service | ||
|
||
sudo systemctl enable mysql | ||
|
||
sudo systemctl start mysql | ||
|
||
if ! sudo mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH auth_socket;"; then | ||
echo 'VITO_SSH_ERROR' && exit 1 | ||
fi | ||
|
||
if ! sudo mysql -e "FLUSH PRIVILEGES"; then | ||
echo 'VITO_SSH_ERROR' && exit 1 | ||
fi |
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