Skip to content

Instantly share code, notes, and snippets.

@budiantoip
Last active July 19, 2023 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save budiantoip/473be15f48e41d78084d0533755db5fc to your computer and use it in GitHub Desktop.
Save budiantoip/473be15f48e41d78084d0533755db5fc to your computer and use it in GitHub Desktop.
MySQL Installation

Install MySQL 5.7 on Ubuntu 22.04

# Download installer package
wget https://dev.mysql.com/get/mysql-apt-config_0.8.12-1_all.deb

# Install package
sudo dpkg -i mysql-apt-config_0.8.12-1_all.deb

# When a dialog pop up, choose the ubuntu bionic
# Then choose MySQL 5.7

# Import GPG key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29

# Update the APT repo
sudo apt update

# Check whether MySQL 5.7 repository has been successfully installed
sudo apt-cache policy mysql-server

# Now install MySQL 5.7 packages
sudo apt install -f mysql-client=5.7* mysql-community-server=5.7* mysql-server=5.7*

# Finally, secure the installation
sudo mysql_secure_installation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment