无需执行 yum update。我们想知道我们是否正在运行最新版本的 MySQL。
答案1
您可以使用命令yum info mysql-server
获取此信息。以下是可以升级的 MySQL 安装示例:
# yum info mysql-server
Loaded plugins: dellsysid, rhnplugin, security
Installed Packages
Name : mysql-server
Arch : x86_64
Version : 5.0.77
Release : 4.el5_5.5
Size : 22 M
Repo : installed
Summary : The MySQL server and related files.
URL : http://www.mysql.com
License : GPLv2 with exceptions
Description: MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
: client/server implementation consisting of a server daemon (mysqld)
: and many different client programs and libraries. This package contains
: the MySQL server and some accompanying files and directories.
Available Packages
Name : mysql-server
Arch : x86_64
Version : 5.0.95
Release : 1.el5_7.1
Size : 9.9 M
Repo : rhel-x86_64-server-5
Summary : The MySQL server and related files
License : GPLv2 with exceptions
Description: MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
: client/server implementation consisting of a server daemon (mysqld)
: and many different client programs and libraries. This package contains
: the MySQL server and some accompanying files and directories.
你可以使用yum check-update
,如果你喜欢,但这会列出全部您的系统的更新;这里有一个小例子:
# yum check-update
Loaded plugins: dellsysid, rhnplugin, security
Skipping security plugin, no data
Deployment_Guide-en-US.noarch 5.8-1.el5 rhel-x86_64-server-5
NetworkManager.i386 1:0.7.0-13.el5 rhel-x86_64-server-5
NetworkManager.x86_64 1:0.7.0-13.el5 rhel-x86_64-server-5
NetworkManager-glib.i386 1:0.7.0-13.el5 rhel-x86_64-server-5
NetworkManager-glib.x86_64 1:0.7.0-13.el5 rhel-x86_64-server-5
PyXML.x86_64 0.8.4-6.el5 rhel-x86_64-server-5
SysVinit.x86_64 2.86-17.el5 rhel-x86_64-server-5
acl.x86_64 2.2.39-8.el5 rhel-x86_64-server-5
acpid.x86_64 1.0.4-12.el5 rhel-x86_64-server-5
alsa-utils.x86_64 1.0.17-6.el5
我建议使用yum info
。
答案2
运行命令
yum check-update
或查看 rhn.redhat.com。
答案3
你可以在这里得到它http://dev.mysql.com/doc/
据我所知,5.6 尚未通过 GA
编辑:我刚刚明白了你问这个问题的真正意思。在这种情况下,我建议你浏览 RHEL 存储库并搜索 mysql-server 包。版本应该在那里。
或者,您可以浏览 CentOS 存储库以查找相同版本,因为它基于 RHEL,所以版本完全相同。