[root@VM_235_40_centos ~]# yum install mysql Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check ---> Package mariadb.x86_64 1:5.5.52-1.el7 will be installed --> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.52-1.el7 for package: 1: mariadb-5.5.52-1.el7.x86_64 --> Running transaction check ---> Package mariadb-libs.x86_64 1:5.5.35-3.el7 will be updated ---> Package mariadb-libs.x86_64 1:5.5.52-1.el7 will be an update --> Finished Dependency Resolution
Dependencies Resolved
================================================================================ Package Arch Version Repository Size ================================================================================ Installing: mariadb x86_64 1:5.5.52-1.el7 os 8.7 M Updating for dependencies: mariadb-libs x86_64 1:5.5.52-1.el7 os 761 k
Installed size: 48 M Is this ok [y/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Erasing : 1:mariadb-5.5.52-1.el7.x86_64 1/1 Verifying : 1:mariadb-5.5.52-1.el7.x86_64 1/1
[root@VM_235_40_centos yum.repos.d]# more 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
[mysql57-community] name=MySQL 5.7 Community Server baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[mysql80-community] name=MySQL 8.0 Community Server baseurl=http://repo.mysql.com/yum/mysql-8.0-community/el/7/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Total download size: 177 M Installed size: 879 M Is this ok [y/d/N]: y Downloading packages: mysql-community-common-5.7.17- FAILED http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-common-5.7.17-1.el6.x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found Trying other mirror. mysql-community-client-5.7.17- FAILED http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-client-5.7.17-1.el6.x86_64.rpm: [Errno 14] HTTP Error 404 - Not Found Trying other mirror. ...... Error downloading packages: mysql-community-server-5.7.17-1.el6.x86_64: [Errno 256] No more mirrors to try. mysql-community-common-5.7.17-1.el6.x86_64: [Errno 256] No more mirrors to try. mysql-community-libs-5.7.17-1.el6.x86_64: [Errno 256] No more mirrors to try. mysql-community-client-5.7.17-1.el6.x86_64: [Errno 256] No more mirrors to try.
[root@VM_235_40_centos yum.repos.d]# cd /var/cache [root@VM_235_40_centos cache]# ls httpd ldconfig man yum [root@VM_235_40_centos cache]# cd yum [root@VM_235_40_centos yum]# ls x86_64 [root@VM_235_40_centos yum]# rm -drf x86_64 [root@VM_235_40_centos yum]# ls
Total download size: 188 M Installed size: 847 M Is this ok [y/d/N]: y Downloading packages: warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-common-5.7.17-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY Public key for mysql-community-common-5.7.17-1.el7.x86_64.rpm is not installed (1/5): mysql-community-common-5.7.17-1.el7.x86_64.rpm | 271 kB 00:00:03 (2/5): mysql-community-libs-5.7.17-1.el7.x86_64.rpm | 2.1 MB 00:00:52 (3/5): numactl-libs-2.0.9-6.el7_2.x86_64.rpm | 29 kB 00:00:00 (4/5): mysql-community-client-5.7. 6% [=- ] 101 kB/s | 12 MB 00:29:51 ETA