[root@lsN4FrHvLd mysql]# yum install mysql-community-server
Repository extras is listed more than once in the configuration
Last metadata expiration check: 0:15:07 ago on Mon 18 Jul 2022 08:32:24 AM CST.
No match for argument: mysql-community-server
Error: Unable to find a match: mysql-community-server
解决:查看是否安装MySQL源
检查mysql源是否安装成功
yum repolist enabled | grep "mysql.*.community.*"
如看到没有
请安装mysql源在进行安装
yum localinstall mysql57-community-release-el7-8.noarch.rpm
再进行安装MySQL
yum install mysql-community-server
若看到已安装MySQL源,
先执行:
yum module disable mysql
再执行:
yum -y install mysql-community-server