Updating MySQL - Linux

From 2022, MySQL has changed the keys for the repository, which will cause updates to mysql to fail.

This also applies to systems on which the MySQL client is installed.

Fix - CentOS

wget https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
rpm --import RPM-GPG-KEY-mysql-2022
rm -f RPM-GPG-KEY-mysql-2022

Then run the dnf or yum update again.

Fix - Debian

wget https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
apt-key add RPM-GPG-KEY-mysql-2022
rm -f RPM-GPG-KEY-mysql-2022

Then run the apt update again.

  • No labels