#执行这条语句的时候报错
yum -y install mysql-community-server
#报错信息
#解决方法:执行下面语句
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
#再次执行:
yum -y install mysql-community-server
成功!
如下截图:
yum -y install mysql-community-server
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
yum -y install mysql-community-server
如下截图: