程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> MYSQL數據庫 >> MySQL綜合教程 >> Linux下mysql安裝(沖突)

Linux下mysql安裝(沖突)

編輯:MySQL綜合教程

 

1.down 錯mysql版本MySQL-server-community-5.0.67-0.rhel5.x86_64.rpm,安裝報錯

2.安裝新down下的版本

rpm -Uvh MySQL-server-community-5.0.67-0.rhel5.i386.rpm

錯誤如下:

error: Failed dependencies:

MySQL conflicts with mysql-5.0.22-2.1.0.1.x86_64

MySQL conflicts with mysql-5.0.22-2.1.0.1.i386

MySQL-server conflicts with mysql-server-5.0.22-2.1.0.1.x86_64

與先前安裝的版本沖突

3.查看先前安裝的mysql

rpm -q mysql

mysql-5.0.22-2.1.0.1

mysql-5.0.22-2.1.0.1

4.刪除

rpm -e --nodeps mysql-5.0.22-2.1.0.1

錯誤如下:error: "mysql-5.0.22-2.1.0.1" specifies multiple packages

有多個重名的包

5.全部刪除

rpm -e --allmatches mysql-5.0.22-2.1.0.1

錯誤如下:

error: Failed dependencies:

libmysqlclient.so.15()(64bit) is needed by (installed) perl-DBD-MySQL-3.0007-1.fc6.x86_64

libmysqlclient.so.15()(64bit) is needed by (installed) mysql-server-5.0.22-2.1.0.1.x86_64

libmysqlclient.so.15()(64bit) is needed by (installed) libdbi-dbd-mysql-0.8.1a-1.2.2.x86_64

libmysqlclient.so.15()(64bit) is needed by (installed) dovecot-1.0-1.2.rc15.el5.x86_64

libmysqlclient.so.15()(64bit) is needed by (installed) mysql-connector-odbc-3.51.12-2.2.x86_64

libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) perl-DBD-MySQL-3.0007-1.fc6.x86_64

libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) mysql-server-5.0.22-2.1.0.1.x86_64

libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) libdbi-dbd-mysql-0.8.1a-1.2.2.x86_64

libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) dovecot-1.0-1.2.rc15.el5.x86_64

libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) mysql-connector-odbc-3.51.12-2.2.x86_64

libmysqlclient_r.so.15()(64bit) is needed by (installed) mysql-server-5.0.22-2.1.0.1.x86_64

libmysqlclient_r.so.15()(64bit) is needed by (installed) MySQL-python-1.2.1-1.x86_64

libmysqlclient_r.so.15()(64bit) is needed by (installed) mysql-connector-odbc-3.51.12-2.2.x86_64

libmysqlclient_r.so.15(libmysqlclient_15)(64bit) is needed by (installed) mysql-server-5.0.22-2.1.0.1.x86_64

libmysqlclient_r.so.15(libmysqlclient_15)(64bit) is needed by (installed) MySQL-python-1.2.1-1.x86_64

libmysqlclient_r.so.15(libmysqlclient_15)(64bit) is needed by (installed) mysql-connector-odbc-3.51.12-2.2.x86_64

mysql = 5.0.22-2.1.0.1 is needed by (installed) mysql-server-5.0.22-2.1.0.1.x86_64

mysql is needed by (installed) MySQL-python-1.2.1-1.x86_64

mysql is needed by (installed) libdbi-dbd-mysql-0.8.1a-1.2.2.x86_64

6.解決

rpm -e perl-DBD-MySQL-3.0007-1.fc6.x86_64

……

相關文件逐個刪除,之後運行rpm -e --allmatches mysql-5.0.22-2.1.0.1

成功

7.安裝新down下的版本

rpm -Uvh MySQL-server-community-5.0.67-0.rhel5.i386.rpm

成功

 

真不容易啊,遇到相同情況的同學可以參考

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved