centos7.9【yum -y install mysql mysql-server】提示Public key for mysql-community-libs-compat-5.7.38-1.el

centos7.9【yum -y install mysql mysql-server】提示Public key for mysql-community-libs-compat-5.7.38-1.el

用这个指令能解决

这种情况的解决方法就是加上- -nogpgcheck就可以了:禁掉GPG验证检查

[root@zabbix-server ~]# yum -y install mysql mysql-server --nogpgcheck

你可能感兴趣的:(学习,mysql,centos,数据库)