Created
July 31, 2021 13:51
-
-
Save icyflame/ad0700dbfc0f3de64498f6f993df7c8b to your computer and use it in GitHub Desktop.
Install MySQL 5.7 on Ubuntu 18.04+. The package has been removed from packages.ubuntu.com, and needs to be
This file contains hidden or 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
#!/usr/bin/bash | |
set -xe | |
wget https://downloads.mysql.com/archives/get/p/23/file/mysql-server_5.7.34-1ubuntu18.04_amd64.deb-bundle.tar | |
tar xf mysql-server_5.7.34-1ubuntu18.04_amd64.deb-bundle.tar | |
sudo apt-get install -y libaio1 libtinfo5 | |
sudo apt-get install -y libjson-perl python2.7 libpython2-stdlib libpython2.7-stdlib libpython2.7-minimal python2.7-minimal python python2 python2-minimal | |
sudo apt install -y libmecab2 | |
sudo dpkg -i mysql-community-source_5.7.34-1ubuntu18.04_amd64.deb | |
sudo dpkg -i mysql-community-client_5.7.34-1ubuntu18.04_amd64.deb | |
sudo dpkg -i mysql-client_5.7.34-1ubuntu18.04_amd64.deb | |
sudo dpkg -i mysql-community-server_5.7.34-1ubuntu18.04_amd64.deb | |
sudo dpkg -i mysql-server_5.7.34-1ubuntu18.04_amd64.deb | |
sudo dpkg -i mysql-community-test_5.7.34-1ubuntu18.04_amd64.deb | |
sudo dpkg -i mysql-testsuite_5.7.34-1ubuntu18.04_amd64.deb | |
sudo dpkg -i libmysqlclient20_5.7.34-1ubuntu18.04_amd64.deb | |
sudo systemctl status mysql.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment