第一步:下载mysql-8.0.11-1.el7.x86_64.rpm-bundle.zip
下载地址:https://pan.baidu.com/s/1meoo20qGj0NP6GcRUjj-oA
密码:y0lb
第二步:上传文件
root@app-virtual-machine:/usr/local/software# rz
root@app-virtual-machine:/usr/local/software# ll
total 1168124
drwxr-xr-x 2 root root 4096 12月 19 19:42 ./
drwxr-xr-x 11 root root 4096 12月 18 21:11 ../
-rw-r--r-- 1 root root 601570845 12月 19 19:32 mysql-8.0.11-1.el7.x86_64.rpm-bundle.zip
第三步:解压文件
root@app-virtual-machine:/usr/local/software# unzip mysql-8.0.11-1.el7.x86_64.rpm-bundle.zip
root@app-virtual-machine:/usr/local/software/mysql-8.0.11-1.el7.x86_64.rpm-bundle# ll
total 589856
drwxr-xr-x 2 root root 4096 12月 19 19:32 ./
drwxr-xr-x 3 root root 4096 12月 19 19:48 ../
-rw-r--r-- 1 root root 26760484 9月 2 00:05 mysql-community-client-8.0.11-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 549512 9月 2 00:05 mysql-community-common-8.0.11-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 4221784 9月 2 00:05 mysql-community-devel-8.0.11-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 24343708 9月 2 00:05 mysql-community-embedded-compat-8.0.11-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 2349488 9月 2 00:05 mysql-community-libs-8.0.11-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 2156516 9月 2 00:05 mysql-community-libs-compat-8.0.11-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 119957152 9月 2 00:05 mysql-community-minimal-debuginfo-8.0.11-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 357581528 9月 2 00:05 mysql-community-server-8.0.11-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 20562556 9月 2 00:05 mysql-community-server-minimal-8.0.11-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 45494324 9月 2 00:05 mysql-community-test-8.0.11-1.el7.x86_64.rpm
root@app-virtual-machine:/usr/local/software/mysql-8.0.11-1.el7.x86_64.rpm-bundle#
第四步:安装依赖程序包
root@app-virtual-machine:/usr/local/software# apt-get install perl -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
perl is already the newest version (5.26.1-6ubuntu0.3).
perl set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 247 not upgraded.
root@app-virtual-machine:/usr/local/software# apt-get install net-tools -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
net-tools
0 upgraded, 1 newly installed, 0 to remove and 247 not upgraded.
Need to get 194 kB of archives.
After this operation, 803 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 net-tools amd64 1.60+git20161116.90da8a0-1ubuntu1 [194 kB]
Fetched 194 kB in 2s (79.1 kB/s)
Selecting previously unselected package net-tools.
(Reading database ... 129368 files and directories currently installed.)
Preparing to unpack .../net-tools_1.60+git20161116.90da8a0-1ubuntu1_amd64.deb ...
Unpacking net-tools (1.60+git20161116.90da8a0-1ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up net-tools (1.60+git20161116.90da8a0-1ubuntu1) ...
第五步:安装rpm命令
root@app-virtual-machine:/usr/local/software/mysql-8.0.11-1.el7.x86_64.rpm-bundle# apt install rpm
第六步:安装MySQL程序包
root@app-virtual-machine:/usr/local/software/mysql-8.0.11-1.el7.x86_64.rpm-bundle# rpm -ivh mysql-community-common-8.0.11-1.el7.x86_64.rpm
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
warning: mysql-community-common-8.0.11-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:mysql-community-common-8.0.11-1.e################################# [100%]
来源:CSDN
作者:小葵哥
链接:https://blog.csdn.net/qq_38743494/article/details/103613593