我使用的是 64 位 CentOS 5.7。我的机器上已经有 MySQL 5.0.88 版本。现在我想将 MySQL 升级到 5.5 版本。我按照这个关联开始安装过程。当我输入“ yum --enablerepo=remi,remi-test list mysql mysql-server
”时,它的输出如下
-> yum --enablerepo=remi,remi-test list mysql mysql-server
Loaded plugins: dellsysid, fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* epel: buaya.klas.or.id
* extras: ftp.iitm.ac.in
* remi: remirpm.mirror.gymkl.ch
* remi-test: remirpm.mirror.gymkl.ch
* rpmforge: mirror.oscc.org.my
* updates: ftp.iitm.ac.in remi | 2.5 kB 00:00
remi-test | 2.5 kB 00:00
Available Packages mysql.i386
5.0.95-5.el5_9 updates
mysql.x86_64
5.5.30-1.el5.remi remi
mysql- server.x86_64
5.5.30-1.el5.remi remi
当我运行"yum --enablerepo=remi,remi-test install mysql mysql-server"
命令时它返回
-> yum --enablerepo=remi,remi-test install mysql mysql-server
Loaded plugins: dellsysid, fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* epel: ftp.jaist.ac.jp
* extras: ftp.iitm.ac.in
* remi: mirror5.layerjet.com
* remi-test: mirror5.layerjet.com
* rpmforge: kartolo.sby.datautama.net.id
* updates: ftp.iitm.ac.in
Setting up Install Process
Package mysql is obsoleted by MySQL-server-community, trying to install MySQL-server-community-5.0.88-0.rhel5.x86_64 instead
Package MySQL-server-community-5.0.88-0.rhel5.x86_64 already installed and latest version
Package mysql is obsoleted by MySQL-server-community, trying to install MySQL-server-community-5.0.88-0.rhel5.x86_64 instead
Package MySQL-server-community-5.0.88-0.rhel5.x86_64 already installed and latest version
Package mysql-server is obsoleted by MySQL-server-community, trying to install MySQL-server-community-5.0.88-0.rhel5.x86_64 instead
Package MySQL-server-community-5.0.88-0.rhel5.x86_64 already installed and latest version
Nothing to do
看来 Link 5.0 是最新的。请帮我如何将 MySQL 5.0 升级到 5.5
答案1
请尝试使用以下命令进行安装
# yum update
# yum --enablerepo=remi install mysql mysql-server
答案2
尝试使用以下命令。
yum --disablerepo=\* --enablerepo=remi install mysql mysql-server