Mysql 5.7 安装,存储库未列出

Mysql 5.7 安装,存储库未列出

我正在尝试在 Linux Server 版本 6.7(圣地亚哥)上安装 MYSQL5.7。

根据说明,我首先添加了存储库。这很好用,但是当我执行 yum repolist all 时,它没有显示 mysql。一切看起来都正确,但它没有按预期工作,为什么?

[root@mcsmyspr-labc01 tmp]#  yum localinstall mysql57-community-release-el7-11.noarch.rpm
Loaded plugins: security
Setting up Local Package Process
Examining mysql57-community-release-el7-11.noarch.rpm: mysql57-community-release-el7-11.noarch
Marking mysql57-community-release-el7-11.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package mysql57-community-release.noarch 0:el7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================================================================
 Package                                               Arch                               Version                             Repository                                                            Size
=========================================================================================================================================================================================================
Installing:
 mysql57-community-release                             noarch                             el7-11                              /mysql57-community-release-el7-11.noarch                              31 k

Transaction Summary
=========================================================================================================================================================================================================
Install       1 Package(s)

Total size: 31 k
Installed size: 31 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : mysql57-community-release-el7-11.noarch                                                                                                                                               1/1
  Verifying  : mysql57-community-release-el7-11.noarch                                                                                                                                               1/1

Installed:
  mysql57-community-release.noarch 0:el7-11

Complete!

答案1

这听起来很像配置文件中尚未启用 repo。

导航到;/etc/yum.repos.d/mysql-community.repo在里面你应该找到以下几行 - 你将有几个部分所以检查你需要/想要使用的每一行;

[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/6/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

enabled=0请注意,需要更改为的行enabled=1然后您应该能够列出 repo。

在您最初的问题中,您似乎已经安装了 CentOS 7 文件(如部分所示el7),您应该使用可以从以下位置下载的 CentOS 6 文件这里. (记住启用正确的部分/版本)

相关内容