0
点赞
收藏
分享

微信扫一扫

dba入门之 mysql各种安装尝试

有态度的萌狮子 2022-03-15 阅读 61

一 linux系统

1.1 l centos7 yum安装mysql5.7

wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm

# 如果直接安装

yum -y install mysql-community-server  # 这步可能会花些时间,安装完成后就会覆盖掉之前的mariadb。

# 大概率会报错

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

# 报错解决办法

sed -i 's/gpgcheck=1/gpgcheck=0/g' /etc/yum.repos.d/mysql-community.repo
sed -i 's/gpgcheck=1/gpgcheck=0/g' /etc/yum.repos.d/mysql-community-source.repo 
# 再执行yum 安装命令即可 
yum -y install mysql-community-server  # 这步可能会花些时间,安装完成后就会覆盖掉之前的mariadb。

二 window系统

举报

相关推荐

0 条评论