1、
#####################################################################
## 在线安装不了,用sohu的下载站点文件快速安装
#####################################################################
[root@k8s2 open-falcon-3party]# yum install -y
mysql-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.7.24-1.el7
will be installed
--> Processing Dependency: mysql-community-common(x86-64) =
5.7.24-1.el7 for package:
mysql-community-server-5.7.24-1.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64)
>= 5.7.9 for package:
mysql-community-server-5.7.24-1.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.7.24-1.el7
will be installed
--> Processing Dependency: mysql-community-libs(x86-64)
>= 5.7.9 for package:
mysql-community-client-5.7.24-1.el7.x86_64
---> Package mysql-community-common.x86_64 0:5.7.24-1.el7
will be installed
--> Running transaction check
---> Package mysql-community-libs.x86_64 0:5.7.24-1.el7
will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package
Arch
Version
Repository
Size
====================================================================================================================================
Installing:
mysql-community-server
x86_64
5.7.24-1.el7
mysql57-community-dmr
165
M
Installing for dependencies:
mysql-community-client
x86_64
5.7.24-1.el7
mysql57-community-dmr
24 M
mysql-community-common
x86_64
5.7.24-1.el7
mysql57-community-dmr
274
k
mysql-community-libs
x86_64
5.7.24-1.el7
mysql57-community-dmr
2.2 M
Transaction Summary
====================================================================================================================================
Install 1 Package (+3 Dependent
packages)
Total download size: 192 M
Installed size: 863 M
Downloading packages:
warning:
/var/cache/yum/x86_64/7/mysql57-community-dmr/packages/mysql-community-common-5.7.24-1.el7.x86_64.rpm:
Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Public key for mysql-community-common-5.7.24-1.el7.x86_64.rpm
is not installed
(1/4):
mysql-community-common-5.7.24-1.el7.x86_64.rpm
| 274
kB 00:00:02
(2/4):
mysql-community-libs-5.7.24-1.el7.x86_64.rpm
| 2.2 MB
00:00:03
mysql-community-client-5.7.24- FAILED
] 1.5 MB/s
| 52 MB 00:01:35
ETA
http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-client-5.7.24-1.el7.x86_64.rpm:
[Errno -1] Package does not match intended download. Suggestion:
run yum --enablerepo=mysql57-community-dmr clean metadata
Trying other mirror.
mysql-community-server-5.7.24- FAILED
=============-
] 1.1 MB/s | 167 MB 00:00:23
ETA
http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-server-5.7.24-1.el7.x86_64.rpm:
[Errno -1] Package does not match intended download. Suggestion:
run yum --enablerepo=mysql57-community-dmr clean metadata
Trying other mirror.
Error downloading packages:
mysql-community-client-5.7.24-1.el7.x86_64:
[Errno 256] No more mirrors to try.
mysql-community-server-5.7.24-1.el7.x86_64:
[Errno 256] No more mirrors to try.
[root@k8s2 open-falcon-3party]#
#####################################################################
wget
http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-community-client-5.7.24-1.el7.x86_64.rpm
wget
http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-community-common-5.7.24-1.el7.x86_64.rpm
wget
http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-community-libs-5.7.24-1.el7.x86_64.rpm
wget
http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-community-common-5.7.24-1.el7.x86_64.rpm
wget
http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-community-devel-5.7.24-1.el7.x86_64.rpm
#####################################################################
[root@k8s2 0sql]# ll
total 196340
-rw-rw-rw- 1 root root 25398288 Dec 17 17:39
mysql-community-client-5.7.24-1.el7.x86_64.rpm
-rw-rw-rw- 1 root root
280896 Dec 17 17:38
mysql-community-common-5.7.24-1.el7.x86_64.rpm
-rw-rw-rw- 1 root root
2272368 Dec 17 17:36
mysql-community-libs-5.7.24-1.el7.x86_64.rpm
-rw-rw-rw- 1 root root 173096508 Dec 17 17:43
mysql-community-server-5.7.24-1.el7.x86_64.rpm
[root@k8s2 0sql]# yum install mysql*
-y
Loaded plugins: fastestmirror, langpacks
Examining mysql-community-client-5.7.24-1.el7.x86_64.rpm:
mysql-community-client-5.7.24-1.el7.x86_64
Marking mysql-community-client-5.7.24-1.el7.x86_64.rpm to be
installed
Examining mysql-community-common-5.7.24-1.el7.x86_64.rpm:
mysql-community-common-5.7.24-1.el7.x86_64
Marking mysql-community-common-5.7.24-1.el7.x86_64.rpm to be
installed
Examining mysql-community-libs-5.7.24-1.el7.x86_64.rpm:
mysql-community-libs-5.7.24-1.el7.x86_64
Marking mysql-community-libs-5.7.24-1.el7.x86_64.rpm to be
installed
Examining mysql-community-server-5.7.24-1.el7.x86_64.rpm:
mysql-community-server-5.7.24-1.el7.x86_64
Marking mysql-community-server-5.7.24-1.el7.x86_64.rpm to be
installed
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.7.24-1.el7
will be installed
---> Package mysql-community-common.x86_64 0:5.7.24-1.el7
will be installed
---> Package mysql-community-libs.x86_64 0:5.7.24-1.el7
will be installed
---> Package mysql-community-server.x86_64 0:5.7.24-1.el7
will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package
Arch
Version
Repository
Size
====================================================================================================================================
Installing:
mysql-community-client
x86_64
5.7.24-1.el7
/mysql-community-client-5.7.24-1.el7.x86_64
107 M
mysql-community-common
x86_64
5.7.24-1.el7
/mysql-community-common-5.7.24-1.el7.x86_64
2.6 M
mysql-community-libs
x86_64
5.7.24-1.el7
/mysql-community-libs-5.7.24-1.el7.x86_64
9.5 M
mysql-community-server
x86_64
5.7.24-1.el7
/mysql-community-server-5.7.24-1.el7.x86_64
744 M
Transaction Summary
====================================================================================================================================
Install 4 Packages
Total size: 863 M
Installed size: 863 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing :
mysql-community-common-5.7.24-1.el7.x86_64
1/4
Installing :
mysql-community-libs-5.7.24-1.el7.x86_64
2/4
Installing :
mysql-community-client-5.7.24-1.el7.x86_64
3/4
Installing :
mysql-community-server-5.7.24-1.el7.x86_64
4/4
Verifying :
mysql-community-server-5.7.24-1.el7.x86_64
1/4
Verifying :
mysql-community-libs-5.7.24-1.el7.x86_64
2/4
Verifying :
mysql-community-common-5.7.24-1.el7.x86_64
3/4
Verifying :
mysql-community-client-5.7.24-1.el7.x86_64
4/4
Installed:
mysql-community-client.x86_64
0:5.7.24-1.el7
mysql-community-common.x86_64
0:5.7.24-1.el7
mysql-community-libs.x86_64
0:5.7.24-1.el7
mysql-community-server.x86_64
0:5.7.24-1.el7
Complete!
[root@k8s2 0sql]#
2、
#####################################################################
## 在线安装选错了版本5.6,应该是5.7, 2018年12月操作
#####################################################################
[root@k8s2 open-falcon-3party]# yum install -y
mysql-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.6.42-2.el7
will be installed
--> Processing Dependency: mysql-community-common(x86-64) =
5.6.42-2.el7 for package:
mysql-community-server-5.6.42-2.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64)
>= 5.6.10 for package:
mysql-community-server-5.6.42-2.el7.x86_64
--> Processing Dependency: perl(DBI) for package:
mysql-community-server-5.6.42-2.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.42-2.el7
will be installed
--> Processing Dependency: mysql-community-libs(x86-64)
>= 5.6.10 for package:
mysql-community-client-5.6.42-2.el7.x86_64
---> Package mysql-community-common.x86_64 0:5.6.42-2.el7
will be installed
---> Package perl-DBI.x86_64 0:1.627-4.el7 will be
installed
--> Processing Dependency: perl(RPC::PlServer) >= 0.2001
for package: perl-DBI-1.627-4.el7.x86_64
--> Processing Dependency: perl(RPC::PlClient) >= 0.2000
for package: perl-DBI-1.627-4.el7.x86_64
--> Running transaction check
---> Package mysql-community-libs.x86_64 0:5.6.42-2.el7
will be installed
---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be
installed
--> Processing Dependency: perl(Net::Daemon) >= 0.13 for
package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Test) for
package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Log) for
package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Compress::Zlib) for
package: perl-PlRPC-0.2020-14.el7.noarch
--> Running transaction check
---> Package perl-IO-Compress.noarch 0:2.061-2.el7 will be
installed
--> Processing Dependency: perl(Compress::Raw::Zlib) >=
2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
--> Processing Dependency: perl(Compress::Raw::Bzip2) >=
2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
---> Package perl-Net-Daemon.noarch 0:0.48-5.el7 will be
installed
--> Running transaction check
---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7
will be installed
---> Package perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7
will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package
Arch
Version
Repository
Size
====================================================================================================================================
Installing:
mysql-community-server
x86_64
5.6.42-2.el7
mysql56-community
59 M
Installing for dependencies:
mysql-community-client
x86_64
5.6.42-2.el7
mysql56-community
20 M
mysql-community-common
x86_64
5.6.42-2.el7
mysql56-community
257 k
mysql-community-libs
x86_64
5.6.42-2.el7
mysql56-community
2.0 M
perl-Compress-Raw-Bzip2
x86_64
2.061-3.el7
base
32 k
perl-Compress-Raw-Zlib
x86_64
1:2.061-4.el7
base
57 k
perl-DBI
x86_64
1.627-4.el7
base
802 k
perl-IO-Compress
noarch
2.061-2.el7
base
260 k
perl-Net-Daemon
noarch
0.48-5.el7
base
51 k
perl-PlRPC
noarch
0.2020-14.el7
base
36 k
Transaction Summary
====================================================================================================================================
Install 1 Package (+9 Dependent
packages)
Total size: 82 M
Total download size: 59 M
Installed size: 355 M
Downloading packages:
No Presto metadata available for mysql56-community
mysql-community-server-5.6.42- FAILED
http://repo.mysql.com/yum/mysql-5.6-community/el/7/x86_64/mysql-community-server-5.6.42-2.el7.x86_64.rpm:
[Errno 14] HTTP Error 416 - Requested Range Not Satisfiable
Trying other mirror.
Error downloading packages:
mysql-community-server-5.6.42-2.el7.x86_64:
[Errno 256] No more mirrors to try.
[root@k8s2 open-falcon-3party]#
[root@k8s2 open-falcon-3party]# yum install -y
mysql-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.7.24-1.el7
will be installed
--> Processing Dependency: mysql-community-common(x86-64) =
5.7.24-1.el7 for package:
mysql-community-server-5.7.24-1.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64)
>= 5.7.9 for package:
mysql-community-server-5.7.24-1.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.7.24-1.el7
will be installed
--> Processing Dependency: mysql-community-libs(x86-64)
>= 5.7.9 for package:
mysql-community-client-5.7.24-1.el7.x86_64
---> Package mysql-community-common.x86_64 0:5.7.24-1.el7
will be installed
--> Running transaction check
---> Package mysql-community-libs.x86_64 0:5.7.24-1.el7
will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package
Arch
Version
Repository
Size
====================================================================================================================================
Installing:
mysql-community-server
x86_64
5.7.24-1.el7
mysql57-community-dmr
165
M
Installing for dependencies:
mysql-community-client
x86_64
5.7.24-1.el7
mysql57-community-dmr
24 M
mysql-community-common
x86_64
5.7.24-1.el7
mysql57-community-dmr
274
k
mysql-community-libs
x86_64
5.7.24-1.el7
mysql57-community-dmr
2.2 M
Transaction Summary
====================================================================================================================================
Install 1 Package (+3 Dependent
packages)
Total download size: 192 M
Installed size: 863 M
Downloading packages:
warning:
/var/cache/yum/x86_64/7/mysql57-community-dmr/packages/mysql-community-common-5.7.24-1.el7.x86_64.rpm:
Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Public key for mysql-community-common-5.7.24-1.el7.x86_64.rpm
is not installed
(1/4):
mysql-community-common-5.7.24-1.el7.x86_64.rpm
| 274
kB 00:00:02
(2/4):
mysql-community-libs-5.7.24-1.el7.x86_64.rpm
| 2.2 MB
00:00:03
mysql-community-client-5.7.24- FAILED
] 1.5 MB/s
| 52 MB 00:01:35
ETA
http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-client-5.7.24-1.el7.x86_64.rpm:
[Errno -1] Package does not match intended download. Suggestion:
run yum --enablerepo=mysql57-community-dmr clean metadata
Trying other mirror.
mysql-community-server-5.7.24- FAILED
=============-
] 1.1 MB/s | 167 MB 00:00:23
ETA
http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-server-5.7.24-1.el7.x86_64.rpm:
[Errno -1] Package does not match intended download. Suggestion:
run yum --enablerepo=mysql57-community-dmr clean metadata
Trying other mirror.
Error downloading packages:
mysql-community-client-5.7.24-1.el7.x86_64:
[Errno 256] No more mirrors to try.
mysql-community-server-5.7.24-1.el7.x86_64:
[Errno 256] No more mirrors to try.
#####################################################################
## 修改mysql-community.repo 文件 启用 5.7
enable
#####################################################################
#wget
http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
## 安装引导
# rpm -ivh
mysql-community-release-el7-5.noarch.rpm
[root@k8s2 yum.repos.d]# vi
mysql-community.repo 改5.7 enable
[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.6
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/7/$basearch/
enabled=1
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=1
gpgcheck=1
gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
