在centos6.4上安装mysql 5.6冲突错误

当我尝试安装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 

您似乎已经安装了根据yum的输出安装的MySQL-devel-5.6和MySQL-server-5.6,您可以继续使用这些软件包,或者回到软件仓库维护的软件包(正如您似乎正在尝试要做),在通过yum重新尝试安装之前手动删除这些软件包。

如果你想手动删除当前安装的版本,你可以尝试rpm -e MySQL-devel-5.6rpm -e MySQL-server-5.6 ,但是如果我是你,我会问自己为什么我已经有了如果尝试从存储库进行安装,则会安装这些软件版本。