当我尝试安装 mysql 5.6 并从 centos 中删除 mysql 5.1 时,
现在没有在我的 VPS 中安装任何 mysql。
yum install mysql-server
Loaded plugins: fastestmirror, refresh-packagekit
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.fdcservers.net
* extras: mirror.ubiquityservers.com
* updates: mirrors.gigenet.com
Resolving Dependencies
--> Running transaction check
---> Package mysql-server.x86_64 0:5.1.73-3.el6_5 will be installed
--> Processing Dependency: mysql = 5.1.73-3.el6_5 for package: mysql-server-5.1.73-3.el6_5.x86_64
--> Running transaction check
---> Package mysql.x86_64 0:5.1.73-3.el6_5 will be installed
--> Processing Conflict: mysql-server-5.1.73-3.el6_5.x86_64 conflicts MySQL-server
--> Finished Dependency Resolution
Error: mysql-server conflicts with MySQL-server-5.6.16-1.el6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@jg58 man1]# yum install mysql
Loaded plugins: fastestmirror, refresh-packagekit
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.fdcservers.net
* extras: mirror.ubiquityservers.com
* updates: mirrors.gigenet.com
Resolving Dependencies
--> Running transaction check
---> Package mysql.x86_64 0:5.1.73-3.el6_5 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql x86_64 5.1.73-3.el6_5 base 894 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total size: 894 k
Installed size: 2.4 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Check Error:
file /usr/bin/mysql_config from install of mysql-5.1.73-3.el6_5.x86_64 conflicts with file from package MySQL-devel-5.6.16-1.el6.x86_64
file /usr/share/man/man1/mysql_config.1.gz from install of mysql-5.1.73-3.el6_5.x86_64 conflicts with file from package MySQL-devel-5.6.16-1.el6.x86_64
file /usr/bin/my_print_defaults from install of mysql-5.1.73-3.el6_5.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64
file /usr/share/man/man1/my_print_defaults.1.gz from install of mysql-5.1.73-3.el6_5.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64
Error Summary
-------------
并且 mysql ststus 是:
grep -i mysql
MySQL-embedded-5.6.16-1.el6.x86_64
mysql-community-release-el6-5.noarch
MySQL-server-5.6.16-1.el6.x86_64
MySQL-devel-5.6.16-1.el6.x86_64
MySQL-shared-compat-5.6.16-1.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
MySQL-shared-5.6.16-1.el6.x86_64
答案1
根据 yum 的输出,您似乎已经安装了 MySQL-devel-5.6 和 MySQL-server-5.6 - 您可以继续使用这些包,或者返回到 repo 维护的包(您似乎正在尝试这样做),在通过 yum 重新尝试安装之前手动删除这些包。
如果您希望手动删除上述当前安装的版本,您可以尝试rpm -e MySQL-devel-5.6
,rpm -e MySQL-server-5.6
但如果我是您,我会问自己为什么如果尝试从存储库安装,我已经安装了这些软件版本。