Package mysql-server is obsoleted by mysql-community-server, trying to install mysql-community-server-5.6.47-2.el7.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.47-2.el7 for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 5.6.10 for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: perl(DBI) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 5.6.10 for package: mysql-community-client-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-client-5.6.47-2.el7.x86_64
---> Package mysql-community-common.x86_64 0:5.6.47-2.el7 will be installed
---> Package mysql-community-server.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-client-5.6.47-2.el7.x86_64
---> Package mysql-community-libs.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-libs-5.6.47-2.el7.x86_64
---> Package mysql-community-server.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Finished Dependency Resolution
Error: Package: mysql-community-client-5.6.47-2.el7.x86_64 (mysql56-community)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-5.6.47-2.el7.x86_64 (mysql56-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: mysql-community-libs-5.6.47-2.el7.x86_64 (mysql56-community)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-5.6.47-2.el7.x86_64 (mysql56-community)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-5.6.47-2.el7.x86_64 (mysql56-community)
Requires: systemd
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@Hadoop soft]# yum install mysql-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Package mysql-server is obsoleted by mysql-community-server, trying to install mysql-community-server-5.6.47-2.el7.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.47-2.el7 for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 5.6.10 for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: perl(DBI) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 5.6.10 for package: mysql-community-client-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-client-5.6.47-2.el7.x86_64
---> Package mysql-community-common.x86_64 0:5.6.47-2.el7 will be installed
---> Package mysql-community-server.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-client-5.6.47-2.el7.x86_64
---> Package mysql-community-libs.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-libs-5.6.47-2.el7.x86_64
---> Package mysql-community-server.x86_64 0:5.6.47-2.el7 will be installed
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: mysql-community-server-5.6.47-2.el7.x86_64
--> Finished Dependency Resolution
Error: Package: mysql-community-client-5.6.47-2.el7.x86_64 (mysql56-community)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-5.6.47-2.el7.x86_64 (mysql56-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: mysql-community-libs-5.6.47-2.el7.x86_64 (mysql56-community)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-5.6.47-2.el7.x86_64 (mysql56-community)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-5.6.47-2.el7.x86_64 (mysql56-community)
Requires: systemd
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@Hadoop soft]# vi /etc/yum.repos.d/mysql-community.repo
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[mysql-tools-community]
name=MySQL Tools Community
baseurl=http://repo.mysql.com/yum/mysql-tools-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
# Enable to use MySQL 5.5
[mysql55-community]
name=MySQL 5.5 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.5-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
# Enable to use MySQL 5.6
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
# Note: MySQL 5.7 is currently in development. For use at your own risk.
# Please read with sub pages: https://dev.mysql.com/doc/relnotes/mysql/5.7/en/
[mysql57-community-dmr]
name=MySQL 5.7 Community Server Development Milestone Release
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
# Enable to use MySQL 5.6
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/
enabled=0
gpgcheck=1
enabled=0是使用,1是禁止