在我的CentOS 6.4服务器上,我正在运行从雷米储存库安装的MySQL 5.5.33。我决定通过MySQL自己的yum存储库将MySQL升级到5.6.x:
安装了存储库后,我的回购列表如下:
# yum repolist enabled
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* Webmin: download.webmin.com
* base: mirrors.xmission.com
* epel: mirror.steadfast.net
* extras: mirror.thelinuxfix.com
* remi: remi.check-update.co.uk
* updates: mirrors.xmission.com
repo id repo name status
Webmin Webmin Distribution Neutral 175
base CentOS-6 - Base 6,367
epel Extra Packages for Enterprise Linux 6 - x86_64 10,737
extras CentOS-6 - Extras 14
mysql-connectors-community MySQL Connectors Community 6
mysql-tools-community MySQL Tools Community 6
mysql56-community MySQL 5.6 Community Server 46
remi Les RPM de remi pour Enterprise Linux 6 - x86_64 1,485
updates CentOS-6 - Updates 864
repolist: 19,700因此,安装并启用了MySQL 5.6存储库。现在,如果我试图检查已安装的MySQL的信息以查看最新版本可用,我得到以下信息:
# yum info mysql
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* Webmin: download.webmin.com
* base: mirrors.xmission.com
* epel: mirror.steadfast.net
* extras: mirror.thelinuxfix.com
* remi: remi.check-update.co.uk
* updates: mirrors.xmission.com
Installed Packages
Name : mysql
Arch : x86_64
Version : 5.5.33
Release : 1.el6.remi
Size : 29 M
Repo : installed
From repo : remi
Summary : MySQL clie.......
Available Packages
Name : mysql
Arch : x86_64
Version : 5.5.37
Release : 1.el6.remi
Size : 5.8 M
Repo : remi
Summary : MySQL client progr....因此,yum似乎仍在查看remi存储库,以获得最新版本。我想,它甚至没有查看mysql56 56社区存储库。接下来我试一试:
# yum info mysql --disablerepo=\* --enablerepo=mysql56-community这应该忽略除了Mysql之外的所有其他存储库。但我明白:
# yum info mysql --disablerepo=\* --enablerepo=mysql56-community
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Installed Packages
Name : mysql
Arch : x86_64
Version : 5.5.33
Release : 1.el6.remi
Size : 29 M
Repo : installed
From repo : remi
Summ......因此,它只列出我已安装的版本,不报告任何其他更新版本可用。我本来希望从mysql56 56社区存储库中看到一个5.6.x版本。
我在这里错过了什么?这里有什么回购冲突吗?
更新:
# yum --disablerepo=\* --enablerepo='mysql*-community*' list available
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
mysql55-community | 2.5 kB 00:00
mysql57-community-dmr | 2.5 kB 00:00
Available Packages
mysql-community-client.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-common.i686 5.6.17-4.el6 mysql56-community
mysql-community-common.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-devel.i686 5.6.17-4.el6 mysql56-community
mysql-community-devel.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-embedded.i686 5.6.17-4.el6 mysql56-community
mysql-community-embedded.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-embedded-devel.i686 5.6.17-4.el6 mysql56-community
mysql-community-embedded-devel.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-libs.i686 5.6.17-4.el6 mysql56-community
mysql-community-libs.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-libs-compat.i686 5.6.17-4.el6 mysql56-community
mysql-community-libs-compat.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-server.x86_64 5.6.17-4.el6 mysql56-community
mysql-community-test.x86_64 5.6.17-4.el6 mysql56-community
mysql-connector-odbc.x86_64 5.3.2-1.el6 mysql-connectors-community
mysql-connector-python.noarch 1.1.6-1.el6 mysql-connectors-community
mysql-utilities.noarch 1.3.6-1.el6 mysql-tools-community
mysql-workbench-community.x86_64 6.1.4-1.el6 mysql-tools-community 所以这里有mysql--社区--*包可用,但是没有一个叫做mysql-server的包。如果我安装了这些mysql-community*包,这与我目前安装的mysql-server包有什么冲突呢?
发布于 2015-08-13 11:17:47
两个repos,remi和mysql56 56社区,不能一起使用,因为它们使用的是不兼容的包命名方案。yum info mysql将不会显示来自MySQL社区回购的任何内容,因为在新的命名方案下,没有一个包被命名为mysql。试一试yum info mysql\*。
因此,您不能从Remi直接更新MySQL到MySQL社区回购。相反,您需要遵循MySQL的关于替换MySQL第三方分发版的说明,特别是关于“非本地第三方分发”的部分。这包括卸载Remi软件包,然后用新名称安装MySQL社区软件包。
如果您需要为其他包保留repo,则应该确保yum不再使用其MySQL包,方法是在回购定义中添加exclude=mysql*或适当的includepkgs行。
发布于 2015-04-11 16:47:26
它们是由不同的维护人员打包的,并且可能会发生冲突,因为它们提供了相同的文件等等,而且可能是mysql rpm:s官方repos不会认为自己升级了从remi安装的mysql rpm:s。
我认为转储数据库,卸载所有mysql rpm:s从remi回购,禁用remi回购,yum清理所有,安装mysql从官方回复和导入数据库。
发布于 2014-05-01 16:05:42
您提供的链接建议使用"--enablerepo='mysql*-community*'“,我会尝试一下。还可以在.repo中编辑/etc/yum.repos.d/文件。在/etc/yum.repos.d/remi.repo中,确保设置了enabled=0,而不是关闭回购。另外,对于mysql社区回购文件,请确保已启用的设置为1。
https://serverfault.com/questions/592518
复制相似问题