CentOS 6下MYSQL與crontab安裝衝突的解決辦法

注意:本文出自 “阿飛”的博客 ,如果要轉載本文章,請與作者聯繫!


今天遇到一個很狗血的問題...我在CentOS6下安裝有MYSQL5.5.18的數據庫,但是後來發現crontab居然沒有安裝,於是乎就yum install vixie-cron crontabs了一把,但是居然一直報瞭如下異常:

file /usr/share/mysql/charsets/README from install of mysql-libs-5.1.61-4.el6.i686 conflicts with file from package MySQL-server-5.5.18-1.linux2.6.i386
file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.61-4.el6.i686 conflicts with file from package MySQL-server-5.5.18-1.linux2.6.i386
file /usr/share/mysql/charsets/armscii8.xml from install of mysql-libs-5.1.61-4.el6.i686 conflicts with file from package MySQL-server-5.5.18-1.linux2.6.i386
file /usr/share/mysql/charsets/ascii.xml from install of mysql-libs-5.1.61-4.el6.i686 conflicts with file from package MySQL-server-5.5.18-1.linux2.6.i386

我想了一下,我安裝的是5.5的,哪裏來的5.1的?後來才發現是crontab服務依賴於mysql-libs5.1.x的。


於是我果斷卸載掉MYSQL5.5(我在測試環境下做的,生產環境建議使用別的方法),然後安裝crontab,再重新安裝MYAQL,本以爲這樣可以很順利的解決問題的,結果,杯具的是,再次遇到上述同樣的問題...只是這回是反過來了,汗!

file /usr/share/mysql/charsets/README from install of MySQL-server-5.5.18-1.linux2.6.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-5.5.18-1.linux2.6.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-5.5.18-1.linux2.6.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-5.5.18-1.linux2.6.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686

後來,我只有把mysql-libs-5.1.x的卸載掉了:rpm -e --nodeps mysql-libs-5.1.*

注意,一定要加:--nodeps,否則也會將crontab等依賴卸掉,這樣就不是我們的初衷了。

然後繼續安裝MYSQL,最後,檢查測試MYSQL和crontab,都可以正常工作了,唉...你說這CentOS6咋這樣呢.....


其他解決方法我也暫時沒找到,也沒時間去找了,如果有知道的,也請告知,謝謝:)





發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章