Mysql
Centos 7 Postfix 安裝使用 MYSQL 5.7 取代了 mariadb
很抱歉打擾您,但我有一個問題,我似乎無法解決。
我正在嘗試在需要移動到更多空間/記憶體的新伺服器上安裝 Postfix,舊伺服器有 256MB 的 RAM,而且很舊。
我對此很陌生,今天/晚上的大部分時間都在試圖弄清楚如何讓它發揮作用。舊伺服器
MYSQL 5.5.36
認為如果我們更改MariaDB
並選擇升級到MYSQL 5.7.18
新伺服器可能會出現意外問題。我們真的沒有專門的開發運營團隊,所以我不能聽從他們的意見。這是我的錯誤:
yum install postfix Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.seas.harvard.edu * epel: epel.mirror.constant.com * extras: ftp.osuosl.org * updates: mirror.trouble-free.net * webtatic: us-east.repo.webtatic.com Resolving Dependencies --> Running transaction check ---> Package postfix.x86_64 2:2.10.1-6.el7 will be installed --> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64 Package 1:mariadb-libs-5.5.52-1.el7.x86_64 is obsoleted by mysql-community-libs-compat-5.7.18-1.el5.x86_64 which is already installed --> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64 Package 1:mariadb-libs-5.5.52-1.el7.x86_64 is obsoleted by mysql-community-libs-compat-5.7.18-1.el5.x86_64 which is already installed --> Finished Dependency Resolution Error: Package: 2:postfix-2.10.1-6.el7.x86_64 (base) Requires: libmysqlclient.so.18()(64bit) Available: 1:mariadb-libs-5.5.52-1.el7.x86_64 (base) libmysqlclient.so.18()(64bit) Error: Package: 2:postfix-2.10.1-6.el7.x86_64 (base) Requires: libmysqlclient.so.18(libmysqlclient_18)(64bit) Available: 1:mariadb-libs-5.5.52-1.el7.x86_64 (base) libmysqlclient.so.18(libmysqlclient_18)(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest # yum install postfix --skip-broken Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: linux.cc.lehigh.edu * epel: epel.mirror.constant.com * extras: ftp.osuosl.org * updates: mirror.solarvps.com * webtatic: us-east.repo.webtatic.com Resolving Dependencies --> Running transaction check ---> Package postfix.x86_64 2:2.10.1-6.el7 will be installed --> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64 Package 1:mariadb-libs-5.5.52-1.el7.x86_64 is obsoleted by mysql-community-libs-compat-5.7.18-1.el5.x86_64 which is already installed --> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64 Package 1:mariadb-libs-5.5.52-1.el7.x86_64 is obsoleted by mysql-community-libs-compat-5.7.18-1.el5.x86_64 which is already installed Packages skipped because of dependency problems: 2:postfix-2.10.1-6.el7.x86_64 from base
顯然我可以看到這些庫
mariadb-libs
已經過時了mysql-community
,但我已經完全刪除了?瑪麗亞數據庫yum remove mariadb-libs Loaded plugins: fastestmirror No Match for argument: mariadb-libs No Packages marked for removal
無論如何,我可以解決這個問題:
- 安裝 Postfix 並繼續
- 也許換成 Mariadb(我們這裡有 PROD 數據,這會導致問題)
- 也許降級到 MYSQL 5.5(真的不想這樣做,因為向後退並不理想)。
任何幫助將非常感激。使用者目前無法從應用程序接收密碼重置電子郵件。
提前致謝。
問題是您正在嘗試安裝 mysql-community-libs-compat-5.7.18-1。el5在 el7 系統上。您需要使用 el7 的包來獲取正確的 libmysqlclient.so.18 庫。
(答案已更新,我剛剛意識到您使用了錯誤的軟體包版本)