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

來源:互聯網
上載者:User

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

  1. 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  
  2. 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  
  3. 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  
  4. 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,本以為這樣可以很順利的解決問題的,結果,杯具的是,再次遇到上述同樣的問題...只是這回是反過來了,汗!

  1. 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  
  2. 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  
  3. 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  
  4. 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咋這樣呢.....

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.