Loading
0

解决:All matches were filtered out by modular filtering for argument: mysql-community-server
被墙跳转TG:@qianhenetwork QQ 851617266

301免备案跳转微信公众号
腾讯云服务器大促销。
华为服务器
前言:在Centos8中安装mysql8.0报错:All matches were filtered out by modular filtering for argument: mysql-community-server Error: Unable to find a match: mysql-community-server本文介绍如何解决这个报错。
报错如下:
 

[[email protected]]# sudo yum -y install mysql-community-server --enablerepo=mysql80-community --nogpgcheck
MySQL 8.0 Community Server                                                                                                       1.3 MB/s | 3.0 MB     00:02    
MySQL Connectors Community                                                                                                        55 kB/s |  59 kB     00:01    
MySQL Tools Community                                                                                                            490 kB/s | 1.0 MB     00:02    
All matches were filtered out by modular filtering for argument: mysql-community-server
Error: Unable to find a match: mysql-community-server

解决方法:方法很简单,按照如下操作即可。
1、先执行如下命令:

yum module disable mysql

2、然后在执行安装mysql的命令即可,例如我安装的是mysql8.0命令如下。(换成自己的安装命令

sudo yum -y install mysql-community-server --enablerepo=mysql80-community --nogpgcheck

如果不是mysql8,也可以执行如下命令安装:

yum -y install mysql-community-server

最终安装完成执行命令 service mysqld restart 启动mysql即可。
查看初始的数据库root密码:

sudo grep 'temporary password' /var/log/mysqld.log

301免备案跳转微信公众号
华为服务器
腾讯云服务器大促销。

声明:站长码字很辛苦啊,转载时请保留本声明及附带文章链接:https://www.zfcdn.xyz/showinfo-13-36310-0.html
亲爱的:被墙域名跳转TG:@qianhenetwork QQ:851617266,可否收藏+评论+分享呢?
上一篇:MySQL通过localhost无法连接数据库的解决,报错socket错误,但是127.0.0.1能连接
下一篇:取消mysql监听ipv6只监听ipv4地址方法