请参阅系统上的MySQL stautus。
[root@n yum.repos.d]# rpm -qa | grep mysql
mysql-libs-5.1.73-3.el6_5.x86_64
mysql-community-release-fc21-5.noarch
[root@n yum.repos.d]# yum remove mysql
Setting up Remove Process
No Match for argument: mysql
Package(s) mysql available, but not installed.
No Packages marked for removal
之后我尝试安装MySQL服务器 - 它提供了一些错误消息并且无法安装。
[root@n yum.repos.d]# rpm -ivh http://repo.mysql.com/mysql-community-release-el5-5.noarch.rpm
Retrieving http://repo.mysql.com/mysql-community-release-el5-5.noarch.rpm
Preparing... ########################################### [100%]
package mysql-community-release-fc21-5.noarch (which is newer than mysql-community-release-el5-5.noarch) is already installed
file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql from install of mysql-community-release-el5-5.noarch conflicts with file from package mysql-community-release-fc21-5.noarch
file /etc/yum.repos.d/mysql-community-source.repo from install of mysql-community-release-el5-5.noarch conflicts with file from package mysql-community-release-fc21-5.noarch
file /etc/yum.repos.d/mysql-community.repo from install of mysql-community-release-el5-5.noarch conflicts with file from package mysql-community-release-fc21-5.noarch
[root@n yum.repos.d]# dir
CentOS-Base.repo CentOS-Vault.repo
CentOS-Debuginfo.repo epel.repo
CentOS-fasttrack.repo epel-testing.repo
CentOS-Media.repo mysql-community-release-el6-5.noarch.rpm
我无法安装MySQL。如何解决此问题并在我的系统中安装MySQL 5.6。我正在使用远程系统。
答案 0 :(得分:0)
您的计算机中已安装了软件包。您可以使用该版本(比您尝试安装的版本更新版本)或运行:
rpm -e mysql-community-release-fc21-5.noarch
要删除它,然后运行您尝试使用的命令。