安裝mysql報Requires: libc.so.6(GLIBC_2.17)(64bit)

  1. Error: Package: mysql-community-server-5.6.40-2.el7.x86_64 (mysql56-community)mysql

  2.            Requires: libc.so.6(GLIBC_2.17)(64bit)c++

  3. Error: Package: mysql-community-server-5.6.40-2.el7.x86_64 (mysql56-community)sql

  4.            Requires: systemdcentos

  5. Error: Package: mysql-community-libs-5.6.40-2.el7.x86_64 (mysql56-community)ui

  6.            Requires: libc.so.6(GLIBC_2.17)(64bit)spa

  7. Error: Package: mysql-community-server-5.6.40-2.el7.x86_64 (mysql56-community)unix

  8.            Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)code

  9. Error: Package: mysql-community-client-5.6.40-2.el7.x86_64 (mysql56-community)server

  10.            Requires: libc.so.6(GLIBC_2.17)(64bit)ip

  11.  You could try using --skip-broken to work around the problem

  12.  You could try running: rpm -Va --nofiles --nodigest

解決方案以下:https://unix.stackexchange.com/questions/280385/can-not-install-mysql-server-on-centos-6-7-32bit-error-need-rpm #cd /etc/yum.repos.d/

  1. #sudo vi mysql-community.repo

  2.  
  1. 找到mysql-56-community

  2.  
  1. 將enable置爲0 enable=0

  2. 從新安裝mysql sudo yum install mysql-server

-------------------------------------------------------------------------

mysql 安裝

1.獲取yum安裝源
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

2.安裝yum安裝源  rpm -ivh mysql-community-release-el7-5.noarch.rpm   3. yum -y install mysql-server   /yum makecache 4.啓動mysql   service mysqld start或者/etc/init.d/mysqld start           設置開機啓動:             添加開機啓動:chkconfig --add mysqld;             開機啓動:chkconfig mysqld on;         中止 MySQL 服務:          service mysqld stop 5.  MySQL 登錄等權限設置          mysql -u root;             use mysql ;             update user set password=password("123456") where user="root";             flush privileges;  

相關文章
相關標籤/搜索