Python全系列 教程
3567个小节阅读:5930.8k
目录
鸿蒙应用开发
C语言快速入门
JAVA全系列 教程
面向对象的程序设计语言
Python全系列 教程
Python3.x版本,未来主流的版本
人工智能 教程
顺势而为,AI创新未来
大厂算法 教程
算法,程序员自我提升必经之路
C++ 教程
一门通用计算机编程语言
微服务 教程
目前业界流行的框架组合
web前端全系列 教程
通向WEB技术世界的钥匙
大数据全系列 教程
站在云端操控万千数据
AIGC全能工具班
A A
White Night
https://mirror.tuna.tsinghua.edu.cn/help/mysql/
新建 /etc/yum.repos.d/mysql-community.repo
,内容如下:
xxxxxxxxxx
201[mysql-connectors-community]
2name=MySQL Connectors Community
3baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-connectors-community-el7-$basearch/
4enabled=1
5gpgcheck=1
6gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
7
8[mysql-tools-community]
9name=MySQL Tools Community
10baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-tools-community-el7-$basearch/
11enabled=1
12gpgcheck=1
13gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
14
15[mysql-8.0-community]
16name=MySQL 8.0 Community Server
17baseurl=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-8.0-community-el7-$basearch/
18enabled=1
19gpgcheck=1
20gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql
xxxxxxxxxx
11yum -y install mysql-community-server
问题
提示如下错误:
Failing package is: mysql-community-libs-compat-5.7.37-1.el7.x86_64 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
原因是:GPG对于包的源key的验证没有通过
解决方案
使用如下命令安装:
xxxxxxxxxx
11yum -y install mysql-community-server --nogpgcheck
xxxxxxxxxx
11systemctl start mysqld