当前位置:网站首页>Centos7.x下安装mysql8遇到的问题Couldn‘t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022

Centos7.x下安装mysql8遇到的问题Couldn‘t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022

2022-06-11 11:28:00 墨者大数据

在线安装mysql时遇到
如果遇到错误:Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
需要运行下面的命令
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022

再次执行mysql的安装命令:

yum install mysql-community-server

完整的mysql在线安装

#这里是在tlc101上安装mysql, 也就是和CM主节点在同一个节点。
yum localinstall https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm
#安装服务
yum install mysql-community-server
#启动:
systemctl start mysqld
#加入开机自启
systemctl enable mysqld

原网站

版权声明
本文为[墨者大数据]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_42965737/article/details/125161216