Created
December 1, 2023 16:01
-
-
Save pdaire/f7a41213b69923fc6fa6d3272d721630 to your computer and use it in GitHub Desktop.
MySQL 5.7 on Ubuntu 20.04
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
#!/bin/bash | |
# Remove existing MySQL installs | |
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-* | |
sudo rm -rf /etc/mysql /var/lib/mysql | |
sudo apt-get autoremove | |
sudo apt-get autoclean | |
# Download | |
wget https://downloads.mysql.com/archives/get/p/23/file/mysql-server_5.7.29-1ubuntu18.04_amd64.deb-bundle.tar | |
tar xaf mysql-server_5.7.29-1ubuntu18.04_amd64.deb-bundle.tar | |
# Install (the order of these commands matters!) | |
sudo apt install libaio1 libmecab2 python libjson-perl | |
sudo dpkg -i mysql-common_5.7.29-1ubuntu18.04_amd64.deb | |
sudo dpkg -i libmysqlclient20_5.7.29-1ubuntu18.04_amd64.deb | |
sudo dpkg -i libmysqlclient-dev_5.7.29-1ubuntu18.04_amd64.deb | |
sudo dpkg -i libmysqld-dev_5.7.29-1ubuntu18.04_amd64.deb | |
sudo dpkg -i mysql-community-source_5.7.29-1ubuntu18.04_amd64.deb | |
sudo dpkg -i mysql-community-client_5.7.29-1ubuntu18.04_amd64.deb | |
sudo dpkg -i mysql-client_5.7.29-1ubuntu18.04_amd64.deb | |
sudo dpkg -i mysql-community-server_5.7.29-1ubuntu18.04_amd64.deb | |
sudo dpkg -i mysql-server_5.7.29-1ubuntu18.04_amd64.deb | |
sudo dpkg -i mysql-community-test_5.7.29-1ubuntu18.04_amd64.deb | |
sudo dpkg -i mysql-testsuite_5.7.29-1ubuntu18.04_amd64.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment