Created
August 7, 2020 02:43
-
-
Save tobias-khs/8dcf82f719a2b3a7c3b9604b4df53bbf to your computer and use it in GitHub Desktop.
Install MySQL 5.7 on Ubuntu 20.04
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
| #!/bin/bash | |
| # Cleanup current MySQL installation | |
| #apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-* | |
| #rm -rf /etc/mysql /var/lib/mysql | |
| #apt-get autoremove | |
| #apt-get autoclean | |
| if [ "$1" == "-d" ]; then | |
| # Dependencies might be different on other systems... | |
| apt install libaio1 | |
| apt install libmecab2 | |
| apt install libtinfo5 | |
| fi | |
| # Download MySQL, for other versions visit: https://downloads.mysql.com/archives/community/ | |
| wget https://downloads.mysql.com/archives/get/p/23/file/mysql-server_5.7.30-1ubuntu18.04_amd64.deb-bundle.tar | |
| tar -xf mysql-server_5.7.30-1ubuntu18.04_amd64.deb-bundle.tar | |
| dpkg -i mysql-common_5.7.30-1ubuntu18.04_amd64.deb | |
| dpkg -i libmysqlclient20_5.7.30-1ubuntu18.04_amd64.deb | |
| #dpkg -i libmysqlclient-dev_5.7.30-1ubuntu18.04_amd64.deb | |
| #dpkg -i libmysqld-dev_5.7.30-1ubuntu18.04_amd64.deb | |
| #dpkg -i mysql-community-source_5.7.30-1ubuntu18.04_amd64.deb | |
| dpkg -i mysql-community-client_5.7.30-1ubuntu18.04_amd64.deb | |
| dpkg -i mysql-client_5.7.30-1ubuntu18.04_amd64.deb | |
| dpkg -i mysql-community-server_5.7.30-1ubuntu18.04_amd64.deb | |
| dpkg -i mysql-server_5.7.30-1ubuntu18.04_amd64.deb | |
| #dpkg -i mysql-community-test_5.7.30-1ubuntu18.04_amd64.deb | |
| #dpkg -i mysql-testsuite_5.7.30-1ubuntu18.04_amd64.deb | |
| dpkg -i libmysqlclient20_5.7.30-1ubuntu18.04_amd64.deb | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment