
Sudo wget -O- | gpg -dearmor | sudo tee /usr/share/keyrings/mysql.gpg Import the MySQL Community Repositoryīy default, MySQL 8.0 Community Edition is unavailable on Debian 11’s repository luckily, a repository exists from the MySQL official repository allowing you to import the latest stable version.įirst, import the GPG key using the following command. Note, wget should be installed automatically but run the command to verify if you are unsure. sudo apt install software-properties-common apt-transport-https wget ca-certificates gnupg2 -y

These may be already present as they are very common packages if unsure, just run the command.

The tutorial will require the following packages installed. sudo apt update & sudo apt upgrade Install Required Packages First, before proceeding any further, update your system to ensure all existing packages are up to date.
