Centos

Centos 6.7 上的 Mysql 衝突

  • May 4, 2016

我正在嘗試在 Centos 6.7 上安裝 RMySQL,但是我對伺服器的東西不是很有經驗,所以請耐心等待。我使用這個命令

sudo yum install mysql-devel

但是我不斷收到以下輸出

--> Running transaction check
---> Package mysql-devel.x86_64 0:5.1.73-5.el6_7.1 will be installed
--> Processing Dependency: mysql = 5.1.73-5.el6_7.1 for package: mysql-devel-5.1.73-5.el6_7.1.x86_64
--> Running transaction check
---> Package mysql.x86_64 0:5.1.73-5.el6_7.1 will be installed
--> Processing Dependency: mysql-libs = 5.1.73-5.el6_7.1 for package: mysql-5.1.73-5.el6_7.1.x86_64
--> Running transaction check
---> Package mysql-libs.x86_64 0:5.1.73-5.el6_7.1 will be installed
--> Processing Conflict: mysql55w-5.5.47-1.w6.x86_64 conflicts mysql < 5.5
--> Processing Conflict: mysql55w-libs-5.5.47-1.w6.x86_64 conflicts mysql-libs < 5.5
--> Finished Dependency Resolution
Error: mysql55w-libs conflicts with mysql-libs-5.1.73-5.el6_7.1.x86_64
Error: mysql55w conflicts with mysql-5.1.73-5.el6_7.1.x86_64

現在我假設我必須更換包裝,所以我嘗試了這裡的解決方案

yum install yum-plugin-replace

yum replace mysql-libs --replace-with mysql55w-libs

yum install mysql55w mysql55w-server

處理衝突:mysql55w-libs-5.5.36-3.w6.x86_64 衝突 mysql-libs < 5.5

但是,即使我使用確切的版本名稱(mysql-5.1.73-5.el6_7.1.x86_64),我也會收到“未安裝包’mysql-libs’”消息

有人對如何解決這個問題有任何提示嗎?

您從第三方儲存庫安裝mysql55wmysql55w-libs第三方儲存庫獲取版本 5.5,但這些軟體包與mysql-develCentOS 提供的標準軟體包(版本 5.1)衝突。您可能需要-devel從第三方儲存庫中找到等效的包。嘗試安裝mysql55w-devel而不是mysql-devel.

引用自:https://serverfault.com/questions/774822