Selecting previously unselected package mysql-community-server. Selecting previously unselected package libmecab2:amd64. Selecting previously unselected package mysql-client. Unpacking mysql-community-client (5.7.37-1debian10). Selecting previously unselected package mysql-community-client. Set your preferred root password when prompted Then install mysql server as below sudo apt install -y mysql-community-server Rerun apt update command to check if it works: sudo apt update Install MySQL 5.7 server package on Debian 11 / Debian 10 Gpg: key 467B942D3A79BD29: public key "MySQL Release Engineering " imported
Manage keyring files in instead (see apt-key(8)).Įxecuting: /tmp/apt-key-gpghome.lBFUIjtfz9/gpg.1.sh -keyserver -recv-keys 467B942D3A79BD29 Then import missing GPG key(s) with below command: $ sudo apt-key adv -keyserver -recv-keys 467B942D3A79BD29 If you encounter signatures couldn’t be verified errors similar to below: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 467B942D3A79BD29 First update repository index sudo apt update Import missing GPG keys on Debian 11 Since we have installed the repository for MySQL 5.7, we will now proceed to install MySQL 5.7 on Debian 11 and Debian 10. Step 2: Install MySQL 5.7 Server on Debian 11 / Debian 10 Next, use the down arrow key to select Ok then click Ok and the package will be installed. In this case, we are going to select Debian 10 (Buster) for both Debian 11 and Debian 10. Note that MySQL 5.7 repository is not yet availaible for Debian 11 (Bullseye). Sudo dpkg -i mysql-apt-config_0.8.18-1_all.deb