我正在运行RHEL 5.6
并尝试MySQL
从升级5.0
到5.5
。我运行sudo yum remove mysql*
以删除所有现有的MySQL
与 相关的软件包。
然后我安装了MySQL
5.5
软件包:
$ sudo yum install mysql55*
Loaded plugins: downloadonly, rhnplugin, security
Excluding Packages in global exclude list
Finished
Setting up Install Process
Package mysql55-embedded-5.5.22-1.ius.el5.x86_64 already installed and latest version
Package mysql55-server-5.5.22-1.ius.el5.x86_64 already installed and latest version
Package mysql55-test-5.5.22-1.ius.el5.x86_64 already installed and latest version
Package mysql55-devel-5.5.22-1.ius.el5.x86_64 already installed and latest version
Package mysql55-bench-5.5.22-1.ius.el5.x86_64 already installed and latest version
Package mysql55-embedded-devel-5.5.22-1.ius.el5.x86_64 already installed and latest version
Package mysql55-5.5.22-1.ius.el5.x86_64 already installed and latest version
Package mysql55-libs-5.5.22-1.ius.el5.x86_64 already installed and latest version
Package mysql55-debuginfo-5.5.22-1.ius.el5.x86_64 already installed and latest version
当我检查软件包列表时,它告诉我仍然有5.0
:
$ sudo yum list mysql
Loaded plugins: downloadonly, rhnplugin, security
Excluding Packages in global exclude list
Finished
Available Packages
mysql.i386 5.0.77-4.el5_6.6 rhel-x86_64-server-5.6.z
mysql.x86_64 5.0.77-4.el5_6.6 rhel-x86_64-server-5.6.z
MySQL
client
但是当我检查时server
我似乎正在运行5.5
:
$ mysql -V
mysql Ver 14.14 Distrib 5.5.22, for Linux (x86_64) using readline 5.1
$ tail /var/log/mysqld.log
Version: '5.5.22-log' socket: '/var/lib/mysql/mysql.sock' port: 3306 Distributed by The IUS Community Project
问:我该如何修复 yum 以正确反映新安装的软件包?
答案1
您sudo yum list mysql
正在将这些 mysql 包显示为可用的,未安装。如何检查yum list installed 'mysql*'