报错如下:
解决方法:方法很简单,按照如下操作即可。[root@blog.tag.gg]# 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、先执行如下命令:
2、然后在执行安装mysql的命令即可,例如我安装的是mysql8.0命令如下。(换成自己的安装命令)yum module disable mysql
如果不是mysql8,也可以执行如下命令安装:sudo yum -y install mysql-community-server --enablerepo=mysql80-community --nogpgcheck
最终安装完成执行命令 service mysqld restart 启动mysql即可。yum -y install mysql-community-server
查看初始的数据库root密码:
sudo grep 'temporary password' /var/log/mysqld.log
文章评论 本文章有个评论