Centos7 安裝 mysql5.7

來源:互聯網
上載者:User

標籤:let   nec   base   key   ast   pos   虛擬   trie   security   

此前在centos6.5裝mysql5.7,在執行yum install mysql-community-server時出現問題

[[email protected] ~]# yum install mysql-community-serverLoaded plugins: fastestmirror, refresh-packagekit, securitySetting up Install ProcessLoading mirror speeds from cached hostfile * base: mirror.bit.edu.cn * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirror.bit.edu.cnResolving Dependencies--> Running transaction check---> Package mysql-community-server.x86_64 0:5.7.18-1.el7 will be installed--> Processing Dependency: mysql-community-client(x86-64) >= 5.7.9 for package: mysql-community-server-5.7.18-1.el7.x86_64--> Processing Dependency: systemd for package: mysql-community-server-5.7.18-1.el7.x86_64--> Processing Dependency: systemd for package: mysql-community-server-5.7.18-1.el7.x86_64--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.7.18-1.el7.x86_64--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.7.18-1.el7.x86_64--> Running transaction check---> Package mysql-community-client.x86_64 0:5.7.18-1.el7 will be installed--> Processing Dependency: mysql-community-libs(x86-64) >= 5.7.9 for package: mysql-community-client-5.7.18-1.el7.x86_64--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-client-5.7.18-1.el7.x86_64--> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: mysql-community-client-5.7.18-1.el7.x86_64---> Package mysql-community-server.x86_64 0:5.7.18-1.el7 will be installed--> Processing Dependency: systemd for package: mysql-community-server-5.7.18-1.el7.x86_64--> Processing Dependency: systemd for package: mysql-community-server-5.7.18-1.el7.x86_64--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.7.18-1.el7.x86_64--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.7.18-1.el7.x86_64--> Running transaction check---> Package mysql-community-client.x86_64 0:5.7.18-1.el7 will be installed--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-client-5.7.18-1.el7.x86_64--> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: mysql-community-client-5.7.18-1.el7.x86_64---> Package mysql-community-libs.x86_64 0:5.7.18-1.el7 will be installed--> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: mysql-community-libs-5.7.18-1.el7.x86_64---> Package mysql-community-server.x86_64 0:5.7.18-1.el7 will be installed--> Processing Dependency: systemd for package: mysql-community-server-5.7.18-1.el7.x86_64--> Processing Dependency: systemd for package: mysql-community-server-5.7.18-1.el7.x86_64--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.7.18-1.el7.x86_64--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.7.18-1.el7.x86_64--> Finished Dependency ResolutionError: Package: mysql-community-client-5.7.18-1.el7.x86_64 (mysql57-community)           Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)Error: Package: mysql-community-server-5.7.18-1.el7.x86_64 (mysql57-community)           Requires: libc.so.6(GLIBC_2.17)(64bit)Error: Package: mysql-community-client-5.7.18-1.el7.x86_64 (mysql57-community)           Requires: libc.so.6(GLIBC_2.14)(64bit)Error: Package: mysql-community-libs-5.7.18-1.el7.x86_64 (mysql57-community)           Requires: libc.so.6(GLIBC_2.14)(64bit)Error: Package: mysql-community-server-5.7.18-1.el7.x86_64 (mysql57-community)           Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)Error: Package: mysql-community-server-5.7.18-1.el7.x86_64 (mysql57-community)           Requires: systemd You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest[[email protected] ~]# 

在網上搜了很多 有說是5.7需要記憶體在1GB以上的 改過記憶體也沒見效果,有的還說要執行yum remove mysql-lib*然後再執行yum update更新在安裝的也不可以

後來搜到一篇文章說這是由於安裝順序不同導致相互依賴出了問題 按照下面的方法執行就可以解決了。我重新裝了一個虛擬機器,是centos7,執行安裝發現解決了之前遇到的問題,但是6.5版本的沒有測,不知道可不可以。

 

[[email protected] share]# rpm -ivh mysql57-community-release-el7-11.noarch.rpm warning: mysql57-community-release-el7-11.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEYPreparing...                          ################################# [100%]Updating / installing...   1:mysql57-community-release-el7-11 ################################# [100%][[email protected] share]#  yum install mysql-community-serverLoaded plugins: fastestmirror, langpacksmysql-connectors-community                               | 2.5 kB     00:00     mysql-tools-community                                    | 2.5 kB     00:00     mysql57-community                                        | 2.5 kB     00:00     (1/3): mysql-connectors-community/x86_64/primary_db        |  14 kB   00:00     (2/3): mysql57-community/x86_64/primary_db                 | 106 kB   00:00     (3/3): mysql-tools-community/x86_64/primary_db             |  33 kB   00:01     Loading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * extras: mirrors.btte.net * updates: mirror.bit.edu.cnResolving Dependencies--> Running transaction check---> Package mysql-community-server.x86_64 0:5.7.18-1.el7 will be installed--> Processing Dependency: mysql-community-common(x86-64) = 5.7.18-1.el7 for package: mysql-community-server-5.7.18-1.el7.x86_64--> Processing Dependency: mysql-community-client(x86-64) >= 5.7.9 for package: mysql-community-server-5.7.18-1.el7.x86_64--> Running transaction check---> Package mysql-community-client.x86_64 0:5.7.18-1.el7 will be installed--> Processing Dependency: mysql-community-libs(x86-64) >= 5.7.9 for package: mysql-community-client-5.7.18-1.el7.x86_64---> Package mysql-community-common.x86_64 0:5.7.18-1.el7 will be installed--> Running transaction check---> Package mariadb-libs.x86_64 1:5.5.52-1.el7 will be obsoleted--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64---> Package mysql-community-libs.x86_64 0:5.7.18-1.el7 will be obsoleting--> Running transaction check---> Package mysql-community-libs-compat.x86_64 0:5.7.18-1.el7 will be obsoleting--> Finished Dependency ResolutionDependencies Resolved================================================================================ Package                      Arch    Version          Repository          Size================================================================================Installing: mysql-community-libs         x86_64  5.7.18-1.el7     mysql57-community  2.1 M     replacing  mariadb-libs.x86_64 1:5.5.52-1.el7 mysql-community-libs-compat  x86_64  5.7.18-1.el7     mysql57-community  2.0 M     replacing  mariadb-libs.x86_64 1:5.5.52-1.el7 mysql-community-server       x86_64  5.7.18-1.el7     mysql57-community  162 MInstalling for dependencies: mysql-community-client       x86_64  5.7.18-1.el7     mysql57-community   24 M mysql-community-common       x86_64  5.7.18-1.el7     mysql57-community  271 kTransaction Summary================================================================================Install  3 Packages (+2 Dependent packages)Total download size: 190 MIs this ok [y/d/N]: yDownloading packages:warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-common-5.7.18-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEYPublic key for mysql-community-common-5.7.18-1.el7.x86_64.rpm is not installed(1/5): mysql-community-common-5.7.18-1.el7.x86_64.rpm      | 271 kB   00:02     (2/5): mysql-community-libs-5.7.18-1.el7.x86_64.rpm        | 2.1 MB   00:07     (3/5): mysql-community-libs-compat-5.7.18-1.el7.x86_64.rpm | 2.0 MB   00:10     (4/5): mysql-community-client-5.7.18-1.el7.x86_64.rpm      |  24 MB   01:47     (5/5): mysql-community-server-5.7.18-1.el7.x86_64.rpm      | 162 MB   11:53     --------------------------------------------------------------------------------Total                                              265 kB/s | 190 MB  12:15     Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysqlImporting GPG key 0x5072E1F5: Userid     : "MySQL Release Engineering <[email protected]>" Fingerprint: a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5 Package    : mysql57-community-release-el7-11.noarch (installed) From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysqlIs this ok [y/N]: yRunning transaction checkRunning transaction testTransaction test succeededRunning transaction  Installing : mysql-community-common-5.7.18-1.el7.x86_64                   1/6   Installing : mysql-community-libs-5.7.18-1.el7.x86_64                     2/6   Installing : mysql-community-client-5.7.18-1.el7.x86_64                   3/6   Installing : mysql-community-server-5.7.18-1.el7.x86_64                   4/6   Installing : mysql-community-libs-compat-5.7.18-1.el7.x86_64              5/6   Erasing    : 1:mariadb-libs-5.5.52-1.el7.x86_64                           6/6   Verifying  : mysql-community-server-5.7.18-1.el7.x86_64                   1/6   Verifying  : mysql-community-common-5.7.18-1.el7.x86_64                   2/6   Verifying  : mysql-community-client-5.7.18-1.el7.x86_64                   3/6   Verifying  : mysql-community-libs-compat-5.7.18-1.el7.x86_64              4/6   Verifying  : mysql-community-libs-5.7.18-1.el7.x86_64                     5/6   Verifying  : 1:mariadb-libs-5.5.52-1.el7.x86_64                           6/6 Installed:  mysql-community-libs.x86_64 0:5.7.18-1.el7                                      mysql-community-libs-compat.x86_64 0:5.7.18-1.el7                               mysql-community-server.x86_64 0:5.7.18-1.el7                                  Dependency Installed:  mysql-community-client.x86_64 0:5.7.18-1.el7                                    mysql-community-common.x86_64 0:5.7.18-1.el7                                  Replaced:  mariadb-libs.x86_64 1:5.5.52-1.el7                                            Complete!

 

Centos7 安裝 mysql5.7

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.