阿里云MySQL安装到centos,并链接。

Last login: Wed Jan 22 11:21:17 on ttys001

wulaguixiaomianyangdeMacBook-Pro:~ xingwen$ ssh [email protected]

[email protected]‘s password:

Last failed login: Wed Jan 22 11:26:02 CST 2020 from 117.22.255.130 on ssh:notty

There were 81 failed login attempts since the last successful login.

Last login: Tue Dec  3 08:20:37 2019 from 36.45.15.192

Welcome to Alibaba Cloud Elastic Compute Service !

[[email protected] ~]# yum -y update

已加载插件:fastestmirror

Determining fastest mirrors

base                                                     | 3.6 kB     00:00

epel                                                     | 5.4 kB     00:00

extras                                                   | 2.9 kB     00:00

updates                                                  | 2.9 kB     00:00

(1/4): extras/7/x86_64/primary_db                          | 153 kB   00:00

(2/4): epel/x86_64/updateinfo                              | 1.0 MB   00:00

(3/4): updates/7/x86_64/primary_db                         | 5.9 MB   00:00

(4/4): epel/x86_64/primary_db                              | 6.9 MB   00:00

正在解决依赖关系

--> 正在检查事务

---> 软件包 binutils.x86_64.0.2.27-41.base.el7 将被 升级

---> 软件包 binutils.x86_64.0.2.27-41.base.el7_7.1 将被 更新

---> 软件包 ca-certificates.noarch.0.2018.2.22-70.0.el7_5 将被 升级

---> 软件包 ca-certificates.noarch.0.2019.2.32-76.el7_7 将被 更新

---> 软件包 cloud-utils-growpart.x86_64.0.0.27-10.el7 将被 升级

---> 软件包 cloud-utils-growpart.noarch.0.0.29-5.el7 将被 更新

---> 软件包 curl.x86_64.0.7.29.0-54.el7 将被 升级

---> 软件包 curl.x86_64.0.7.29.0-54.el7_7.1 将被 更新

---> 软件包 device-mapper.x86_64.7.1.02.158-2.el7 将被 升级

---> 软件包 device-mapper.x86_64.7.1.02.158-2.el7_7.2 将被 更新

---> 软件包 device-mapper-libs.x86_64.7.1.02.158-2.el7 将被 升级

---> 软件包 device-mapper-libs.x86_64.7.1.02.158-2.el7_7.2 将被 更新

---> 软件包 firewalld.noarch.0.0.6.3-2.el7_7.1 将被 升级

---> 软件包 firewalld.noarch.0.0.6.3-2.el7_7.2 将被 更新

---> 软件包 firewalld-filesystem.noarch.0.0.6.3-2.el7_7.1 将被 升级

---> 软件包 firewalld-filesystem.noarch.0.0.6.3-2.el7_7.2 将被 更新

---> 软件包 hostname.x86_64.0.3.13-3.el7 将被 升级

---> 软件包 hostname.x86_64.0.3.13-3.el7_7.1 将被 更新

---> 软件包 iproute.x86_64.0.4.11.0-25.el7 将被 升级

---> 软件包 iproute.x86_64.0.4.11.0-25.el7_7.2 将被 更新

---> 软件包 kernel.x86_64.0.3.10.0-1062.9.1.el7 将被 安装

---> 软件包 kernel-devel.x86_64.0.3.10.0-1062.9.1.el7 将被 安装

---> 软件包 kernel-headers.x86_64.0.3.10.0-1062.1.2.el7 将被 升级

---> 软件包 kernel-headers.x86_64.0.3.10.0-1062.9.1.el7 将被 更新

---> 软件包 kernel-tools.x86_64.0.3.10.0-1062.1.2.el7 将被 升级

---> 软件包 kernel-tools.x86_64.0.3.10.0-1062.9.1.el7 将被 更新

---> 软件包 kernel-tools-libs.x86_64.0.3.10.0-1062.1.2.el7 将被 升级

---> 软件包 kernel-tools-libs.x86_64.0.3.10.0-1062.9.1.el7 将被 更新

---> 软件包 libblkid.x86_64.0.2.23.2-61.el7 将被 升级

---> 软件包 libblkid.x86_64.0.2.23.2-61.el7_7.1 将被 更新

---> 软件包 libcurl.x86_64.0.7.29.0-54.el7 将被 升级

---> 软件包 libcurl.x86_64.0.7.29.0-54.el7_7.1 将被 更新

---> 软件包 libmount.x86_64.0.2.23.2-61.el7 将被 升级

---> 软件包 libmount.x86_64.0.2.23.2-61.el7_7.1 将被 更新

---> 软件包 libsmartcols.x86_64.0.2.23.2-61.el7 将被 升级

---> 软件包 libsmartcols.x86_64.0.2.23.2-61.el7_7.1 将被 更新

---> 软件包 libuuid.x86_64.0.2.23.2-61.el7 将被 升级

---> 软件包 libuuid.x86_64.0.2.23.2-61.el7_7.1 将被 更新

---> 软件包 microcode_ctl.x86_64.2.2.1-53.el7 将被 升级

---> 软件包 microcode_ctl.x86_64.2.2.1-53.7.el7_7 将被 更新

---> 软件包 nss.x86_64.0.3.44.0-4.el7 将被 升级

---> 软件包 nss.x86_64.0.3.44.0-7.el7_7 将被 更新

---> 软件包 nss-softokn.x86_64.0.3.44.0-5.el7 将被 升级

---> 软件包 nss-softokn.x86_64.0.3.44.0-8.el7_7 将被 更新

---> 软件包 nss-softokn-freebl.i686.0.3.44.0-5.el7 将被 升级

---> 软件包 nss-softokn-freebl.x86_64.0.3.44.0-5.el7 将被 升级

---> 软件包 nss-softokn-freebl.i686.0.3.44.0-8.el7_7 将被 更新

---> 软件包 nss-softokn-freebl.x86_64.0.3.44.0-8.el7_7 将被 更新

---> 软件包 nss-sysinit.x86_64.0.3.44.0-4.el7 将被 升级

---> 软件包 nss-sysinit.x86_64.0.3.44.0-7.el7_7 将被 更新

---> 软件包 nss-tools.x86_64.0.3.44.0-4.el7 将被 升级

---> 软件包 nss-tools.x86_64.0.3.44.0-7.el7_7 将被 更新

---> 软件包 nss-util.x86_64.0.3.44.0-3.el7 将被 升级

---> 软件包 nss-util.x86_64.0.3.44.0-4.el7_7 将被 更新

---> 软件包 numactl-libs.x86_64.0.2.0.12-3.el7 将被 升级

---> 软件包 numactl-libs.x86_64.0.2.0.12-3.el7_7.1 将被 更新

---> 软件包 patch.x86_64.0.2.7.1-11.el7 将被 升级

---> 软件包 patch.x86_64.0.2.7.1-12.el7_7 将被 更新

---> 软件包 procps-ng.x86_64.0.3.3.10-26.el7 将被 升级

---> 软件包 procps-ng.x86_64.0.3.3.10-26.el7_7.1 将被 更新

---> 软件包 python-firewall.noarch.0.0.6.3-2.el7_7.1 将被 升级

---> 软件包 python-firewall.noarch.0.0.6.3-2.el7_7.2 将被 更新

---> 软件包 python-perf.x86_64.0.3.10.0-1062.1.2.el7 将被 升级

---> 软件包 python-perf.x86_64.0.3.10.0-1062.9.1.el7 将被 更新

---> 软件包 rsyslog.x86_64.0.8.24.0-41.el7_7 将被 升级

---> 软件包 rsyslog.x86_64.0.8.24.0-41.el7_7.2 将被 更新

---> 软件包 selinux-policy.noarch.0.3.13.1-252.el7.1 将被 升级

---> 软件包 selinux-policy.noarch.0.3.13.1-252.el7_7.6 将被 更新

---> 软件包 selinux-policy-targeted.noarch.0.3.13.1-252.el7.1 将被 升级

---> 软件包 selinux-policy-targeted.noarch.0.3.13.1-252.el7_7.6 将被 更新

---> 软件包 sudo.x86_64.0.1.8.23-4.el7 将被 升级

---> 软件包 sudo.x86_64.0.1.8.23-4.el7_7.1 将被 更新

---> 软件包 systemd.x86_64.0.219-67.el7_7.1 将被 升级

---> 软件包 systemd.x86_64.0.219-67.el7_7.2 将被 更新

---> 软件包 systemd-libs.x86_64.0.219-67.el7_7.1 将被 升级

---> 软件包 systemd-libs.x86_64.0.219-67.el7_7.2 将被 更新

---> 软件包 systemd-sysv.x86_64.0.219-67.el7_7.1 将被 升级

---> 软件包 systemd-sysv.x86_64.0.219-67.el7_7.2 将被 更新

---> 软件包 tcpdump.x86_64.14.4.9.2-4.el7 将被 升级

---> 软件包 tcpdump.x86_64.14.4.9.2-4.el7_7.1 将被 更新

---> 软件包 util-linux.x86_64.0.2.23.2-61.el7 将被 升级

---> 软件包 util-linux.x86_64.0.2.23.2-61.el7_7.1 将被 更新

--> 解决依赖关系完成

依赖关系解决

================================================================================

Package                    架构      版本                     源          大小

================================================================================

正在安装:

kernel                     x86_64    3.10.0-1062.9.1.el7      updates     50 M

kernel-devel               x86_64    3.10.0-1062.9.1.el7      updates     18 M

正在更新:

binutils                   x86_64    2.27-41.base.el7_7.1     updates    5.9 M

ca-certificates            noarch    2019.2.32-76.el7_7       updates    399 k

cloud-utils-growpart       noarch    0.29-5.el7               base        27 k

curl                       x86_64    7.29.0-54.el7_7.1        updates    270 k

device-mapper              x86_64    7:1.02.158-2.el7_7.2     updates    294 k

device-mapper-libs         x86_64    7:1.02.158-2.el7_7.2     updates    322 k

firewalld                  noarch    0.6.3-2.el7_7.2          updates    441 k

firewalld-filesystem       noarch    0.6.3-2.el7_7.2          updates     50 k

hostname                   x86_64    3.13-3.el7_7.1           updates     17 k

iproute                    x86_64    4.11.0-25.el7_7.2        updates    803 k

kernel-headers             x86_64    3.10.0-1062.9.1.el7      updates    8.7 M

kernel-tools               x86_64    3.10.0-1062.9.1.el7      updates    7.8 M

kernel-tools-libs          x86_64    3.10.0-1062.9.1.el7      updates    7.8 M

libblkid                   x86_64    2.23.2-61.el7_7.1        updates    181 k

libcurl                    x86_64    7.29.0-54.el7_7.1        updates    223 k

libmount                   x86_64    2.23.2-61.el7_7.1        updates    183 k

libsmartcols               x86_64    2.23.2-61.el7_7.1        updates    141 k

libuuid                    x86_64    2.23.2-61.el7_7.1        updates     83 k

microcode_ctl              x86_64    2:2.1-53.7.el7_7         updates    2.5 M

nss                        x86_64    3.44.0-7.el7_7           updates    854 k

nss-softokn                x86_64    3.44.0-8.el7_7           updates    330 k

nss-softokn-freebl         i686      3.44.0-8.el7_7           updates    214 k

nss-softokn-freebl         x86_64    3.44.0-8.el7_7           updates    224 k

nss-sysinit                x86_64    3.44.0-7.el7_7           updates     65 k

nss-tools                  x86_64    3.44.0-7.el7_7           updates    528 k

nss-util                   x86_64    3.44.0-4.el7_7           updates     79 k

numactl-libs               x86_64    2.0.12-3.el7_7.1         updates     30 k

patch                      x86_64    2.7.1-12.el7_7           updates    111 k

procps-ng                  x86_64    3.3.10-26.el7_7.1        updates    291 k

python-firewall            noarch    0.6.3-2.el7_7.2          updates    352 k

python-perf                x86_64    3.10.0-1062.9.1.el7      updates    7.8 M

rsyslog                    x86_64    8.24.0-41.el7_7.2        updates    616 k

selinux-policy             noarch    3.13.1-252.el7_7.6       updates    492 k

selinux-policy-targeted    noarch    3.13.1-252.el7_7.6       updates    7.0 M

sudo                       x86_64    1.8.23-4.el7_7.1         updates    841 k

systemd                    x86_64    219-67.el7_7.2           updates    5.1 M

systemd-libs               x86_64    219-67.el7_7.2           updates    411 k

systemd-sysv               x86_64    219-67.el7_7.2           updates     88 k

tcpdump                    x86_64    14:4.9.2-4.el7_7.1       updates    422 k

util-linux                 x86_64    2.23.2-61.el7_7.1        updates    2.0 M

事务概要

================================================================================

安装   2 软件包

升级  40 软件包

总下载量:131 M

Downloading packages:

Delta RPMs disabled because /usr/bin/applydeltarpm not installed.

(1/42): cloud-utils-growpart-0.29-5.el7.noarch.rpm         |  27 kB   00:00

(2/42): ca-certificates-2019.2.32-76.el7_7.noarch.rpm      | 399 kB   00:00

(3/42): curl-7.29.0-54.el7_7.1.x86_64.rpm                  | 270 kB   00:00

(4/42): device-mapper-1.02.158-2.el7_7.2.x86_64.rpm        | 294 kB   00:00

(5/42): device-mapper-libs-1.02.158-2.el7_7.2.x86_64.rpm   | 322 kB   00:00

(6/42): firewalld-0.6.3-2.el7_7.2.noarch.rpm               | 441 kB   00:00

(7/42): firewalld-filesystem-0.6.3-2.el7_7.2.noarch.rpm    |  50 kB   00:00

(8/42): hostname-3.13-3.el7_7.1.x86_64.rpm                 |  17 kB   00:00

(9/42): iproute-4.11.0-25.el7_7.2.x86_64.rpm               | 803 kB   00:00

(10/42): binutils-2.27-41.base.el7_7.1.x86_64.rpm          | 5.9 MB   00:00

(11/42): kernel-devel-3.10.0-1062.9.1.el7.x86_64.rpm       |  18 MB   00:00

(12/42): kernel-headers-3.10.0-1062.9.1.el7.x86_64.rpm     | 8.7 MB   00:00

(13/42): kernel-tools-3.10.0-1062.9.1.el7.x86_64.rpm       | 7.8 MB   00:00

(14/42): kernel-tools-libs-3.10.0-1062.9.1.el7.x86_64.rpm  | 7.8 MB   00:00

(15/42): libblkid-2.23.2-61.el7_7.1.x86_64.rpm             | 181 kB   00:00

(16/42): libcurl-7.29.0-54.el7_7.1.x86_64.rpm              | 223 kB   00:00

(17/42): libmount-2.23.2-61.el7_7.1.x86_64.rpm             | 183 kB   00:00

(18/42): libsmartcols-2.23.2-61.el7_7.1.x86_64.rpm         | 141 kB   00:00

(19/42): libuuid-2.23.2-61.el7_7.1.x86_64.rpm              |  83 kB   00:00

(20/42): microcode_ctl-2.1-53.7.el7_7.x86_64.rpm           | 2.5 MB   00:00

(21/42): nss-3.44.0-7.el7_7.x86_64.rpm                     | 854 kB   00:00

(22/42): nss-softokn-3.44.0-8.el7_7.x86_64.rpm             | 330 kB   00:00

(23/42): nss-softokn-freebl-3.44.0-8.el7_7.i686.rpm        | 214 kB   00:00

(24/42): nss-softokn-freebl-3.44.0-8.el7_7.x86_64.rpm      | 224 kB   00:00

(25/42): nss-sysinit-3.44.0-7.el7_7.x86_64.rpm             |  65 kB   00:00

(26/42): nss-tools-3.44.0-7.el7_7.x86_64.rpm               | 528 kB   00:00

(27/42): nss-util-3.44.0-4.el7_7.x86_64.rpm                |  79 kB   00:00

(28/42): numactl-libs-2.0.12-3.el7_7.1.x86_64.rpm          |  30 kB   00:00

(29/42): patch-2.7.1-12.el7_7.x86_64.rpm                   | 111 kB   00:00

(30/42): procps-ng-3.3.10-26.el7_7.1.x86_64.rpm            | 291 kB   00:00

(31/42): python-firewall-0.6.3-2.el7_7.2.noarch.rpm        | 352 kB   00:00

(32/42): python-perf-3.10.0-1062.9.1.el7.x86_64.rpm        | 7.8 MB   00:00

(33/42): rsyslog-8.24.0-41.el7_7.2.x86_64.rpm              | 616 kB   00:00

(34/42): selinux-policy-3.13.1-252.el7_7.6.noarch.rpm      | 492 kB   00:00

(35/42): selinux-policy-targeted-3.13.1-252.el7_7.6.noarch | 7.0 MB   00:00

(36/42): sudo-1.8.23-4.el7_7.1.x86_64.rpm                  | 841 kB   00:00

(37/42): systemd-219-67.el7_7.2.x86_64.rpm                 | 5.1 MB   00:00

(38/42): systemd-libs-219-67.el7_7.2.x86_64.rpm            | 411 kB   00:00

(39/42): systemd-sysv-219-67.el7_7.2.x86_64.rpm            |  88 kB   00:00

(40/42): tcpdump-4.9.2-4.el7_7.1.x86_64.rpm                | 422 kB   00:00

(41/42): util-linux-2.23.2-61.el7_7.1.x86_64.rpm           | 2.0 MB   00:00

(42/42): kernel-3.10.0-1062.9.1.el7.x86_64.rpm             |  50 MB   00:05

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

总计                                                22 MB/s | 131 MB  00:05

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

正在更新    : nss-util-3.44.0-4.el7_7.x86_64                             1/82

正在更新    : systemd-libs-219-67.el7_7.2.x86_64                         2/82

正在更新    : libuuid-2.23.2-61.el7_7.1.x86_64                           3/82

正在更新    : libblkid-2.23.2-61.el7_7.1.x86_64                          4/82

正在更新    : libmount-2.23.2-61.el7_7.1.x86_64                          5/82

正在更新    : nss-softokn-freebl-3.44.0-8.el7_7.x86_64                   6/82

正在更新    : nss-softokn-3.44.0-8.el7_7.x86_64                          7/82

正在更新    : nss-sysinit-3.44.0-7.el7_7.x86_64                          8/82

正在更新    : nss-3.44.0-7.el7_7.x86_64                                  9/82

正在更新    : libcurl-7.29.0-54.el7_7.1.x86_64                          10/82

正在更新    : systemd-219-67.el7_7.2.x86_64                             11/82

正在更新    : libsmartcols-2.23.2-61.el7_7.1.x86_64                     12/82

正在更新    : util-linux-2.23.2-61.el7_7.1.x86_64                       13/82

正在更新    : 7:device-mapper-libs-1.02.158-2.el7_7.2.x86_64            14/82

正在更新    : 7:device-mapper-1.02.158-2.el7_7.2.x86_64                 15/82

正在更新    : python-firewall-0.6.3-2.el7_7.2.noarch                    16/82

正在更新    : firewalld-filesystem-0.6.3-2.el7_7.2.noarch               17/82

正在更新    : kernel-tools-libs-3.10.0-1062.9.1.el7.x86_64              18/82

正在更新    : selinux-policy-3.13.1-252.el7_7.6.noarch                  19/82

正在更新    : selinux-policy-targeted-3.13.1-252.el7_7.6.noarch         20/82

正在更新    : kernel-tools-3.10.0-1062.9.1.el7.x86_64                   21/82

正在更新    : firewalld-0.6.3-2.el7_7.2.noarch                          22/82

正在更新    : cloud-utils-growpart-0.29-5.el7.noarch                    23/82

正在更新    : rsyslog-8.24.0-41.el7_7.2.x86_64                          24/82

正在更新    : systemd-sysv-219-67.el7_7.2.x86_64                        25/82

正在更新    : 2:microcode_ctl-2.1-53.7.el7_7.x86_64                     26/82

正在更新    : curl-7.29.0-54.el7_7.1.x86_64                             27/82

正在更新    : nss-tools-3.44.0-7.el7_7.x86_64                           28/82

正在更新    : procps-ng-3.3.10-26.el7_7.1.x86_64                        29/82

正在更新    : numactl-libs-2.0.12-3.el7_7.1.x86_64                      30/82

正在更新    : binutils-2.27-41.base.el7_7.1.x86_64                      31/82

正在更新    : hostname-3.13-3.el7_7.1.x86_64                            32/82

正在更新    : patch-2.7.1-12.el7_7.x86_64                               33/82

正在更新    : kernel-headers-3.10.0-1062.9.1.el7.x86_64                 34/82

正在更新    : ca-certificates-2019.2.32-76.el7_7.noarch                 35/82

正在安装    : kernel-devel-3.10.0-1062.9.1.el7.x86_64                   36/82

正在更新    : python-perf-3.10.0-1062.9.1.el7.x86_64                    37/82

正在更新    : iproute-4.11.0-25.el7_7.2.x86_64                          38/82

正在安装    : kernel-3.10.0-1062.9.1.el7.x86_64                         39/82

正在更新    : 14:tcpdump-4.9.2-4.el7_7.1.x86_64                         40/82

正在更新    : sudo-1.8.23-4.el7_7.1.x86_64                              41/82

正在更新    : nss-softokn-freebl-3.44.0-8.el7_7.i686                    42/82

清理        : nss-tools-3.44.0-4.el7.x86_64                             43/82

清理        : curl-7.29.0-54.el7.x86_64                                 44/82

清理        : firewalld-0.6.3-2.el7_7.1.noarch                          45/82

清理        : 7:device-mapper-libs-1.02.158-2.el7.x86_64                46/82

清理        : 7:device-mapper-1.02.158-2.el7.x86_64                     47/82

清理        : rsyslog-8.24.0-41.el7_7.x86_64                            48/82

清理        : cloud-utils-growpart-0.27-10.el7.x86_64                   49/82

清理        : 2:microcode_ctl-2.1-53.el7.x86_64                         50/82

清理        : selinux-policy-targeted-3.13.1-252.el7.1.noarch           51/82

清理        : nss-softokn-freebl-3.44.0-5.el7                           52/82

清理        : systemd-sysv-219-67.el7_7.1.x86_64                        53/82

清理        : util-linux-2.23.2-61.el7.x86_64                           54/82

清理        : systemd-219-67.el7_7.1.x86_64                             55/82

清理        : libcurl-7.29.0-54.el7.x86_64                              56/82

清理        : nss-sysinit-3.44.0-4.el7.x86_64                           57/82

清理        : nss-3.44.0-4.el7.x86_64                                   58/82

清理        : nss-softokn-3.44.0-5.el7.x86_64                           59/82

清理        : libmount-2.23.2-61.el7.x86_64                             60/82

清理        : libblkid-2.23.2-61.el7.x86_64                             61/82

清理        : nss-softokn-freebl-3.44.0-5.el7                           62/82

清理        : kernel-tools-3.10.0-1062.1.2.el7.x86_64                   63/82

清理        : procps-ng-3.3.10-26.el7.x86_64                            64/82

清理        : selinux-policy-3.13.1-252.el7.1.noarch                    65/82

清理        : firewalld-filesystem-0.6.3-2.el7_7.1.noarch               66/82

清理        : python-firewall-0.6.3-2.el7_7.1.noarch                    67/82

清理        : kernel-headers-3.10.0-1062.1.2.el7.x86_64                 68/82

清理        : ca-certificates-2018.2.22-70.0.el7_5.noarch               69/82

清理        : systemd-libs-219-67.el7_7.1.x86_64                        70/82

清理        : kernel-tools-libs-3.10.0-1062.1.2.el7.x86_64              71/82

清理        : nss-util-3.44.0-3.el7.x86_64                              72/82

清理        : libuuid-2.23.2-61.el7.x86_64                              73/82

清理        : libsmartcols-2.23.2-61.el7.x86_64                         74/82

清理        : numactl-libs-2.0.12-3.el7.x86_64                          75/82

清理        : binutils-2.27-41.base.el7.x86_64                          76/82

清理        : hostname-3.13-3.el7.x86_64                                77/82

清理        : patch-2.7.1-11.el7.x86_64                                 78/82

清理        : python-perf-3.10.0-1062.1.2.el7.x86_64                    79/82

清理        : iproute-4.11.0-25.el7.x86_64                              80/82

清理        : 14:tcpdump-4.9.2-4.el7.x86_64                             81/82

清理        : sudo-1.8.23-4.el7.x86_64                                  82/82

验证中      : util-linux-2.23.2-61.el7_7.1.x86_64                        1/82

验证中      : sudo-1.8.23-4.el7_7.1.x86_64                               2/82

验证中      : nss-tools-3.44.0-7.el7_7.x86_64                            3/82

验证中      : systemd-libs-219-67.el7_7.2.x86_64                         4/82

验证中      : 14:tcpdump-4.9.2-4.el7_7.1.x86_64                          5/82

验证中      : nss-3.44.0-7.el7_7.x86_64                                  6/82

验证中      : systemd-219-67.el7_7.2.x86_64                              7/82

验证中      : kernel-3.10.0-1062.9.1.el7.x86_64                          8/82

验证中      : 7:device-mapper-1.02.158-2.el7_7.2.x86_64                  9/82

验证中      : iproute-4.11.0-25.el7_7.2.x86_64                          10/82

验证中      : selinux-policy-3.13.1-252.el7_7.6.noarch                  11/82

验证中      : libcurl-7.29.0-54.el7_7.1.x86_64                          12/82

验证中      : python-perf-3.10.0-1062.9.1.el7.x86_64                    13/82

验证中      : rsyslog-8.24.0-41.el7_7.2.x86_64                          14/82

验证中      : procps-ng-3.3.10-26.el7_7.1.x86_64                        15/82

验证中      : kernel-devel-3.10.0-1062.9.1.el7.x86_64                   16/82

验证中      : ca-certificates-2019.2.32-76.el7_7.noarch                 17/82

验证中      : libuuid-2.23.2-61.el7_7.1.x86_64                          18/82

验证中      : kernel-headers-3.10.0-1062.9.1.el7.x86_64                 19/82

验证中      : systemd-sysv-219-67.el7_7.2.x86_64                        20/82

验证中      : nss-softokn-freebl-3.44.0-8.el7_7.i686                    21/82

验证中      : patch-2.7.1-12.el7_7.x86_64                               22/82

验证中      : hostname-3.13-3.el7_7.1.x86_64                            23/82

验证中      : nss-sysinit-3.44.0-7.el7_7.x86_64                         24/82

验证中      : kernel-tools-libs-3.10.0-1062.9.1.el7.x86_64              25/82

验证中      : libmount-2.23.2-61.el7_7.1.x86_64                         26/82

验证中      : 7:device-mapper-libs-1.02.158-2.el7_7.2.x86_64            27/82

验证中      : binutils-2.27-41.base.el7_7.1.x86_64                      28/82

验证中      : numactl-libs-2.0.12-3.el7_7.1.x86_64                      29/82

验证中      : curl-7.29.0-54.el7_7.1.x86_64                             30/82

验证中      : kernel-tools-3.10.0-1062.9.1.el7.x86_64                   31/82

验证中      : nss-softokn-3.44.0-8.el7_7.x86_64                         32/82

验证中      : selinux-policy-targeted-3.13.1-252.el7_7.6.noarch         33/82

验证中      : firewalld-0.6.3-2.el7_7.2.noarch                          34/82

验证中      : firewalld-filesystem-0.6.3-2.el7_7.2.noarch               35/82

验证中      : python-firewall-0.6.3-2.el7_7.2.noarch                    36/82

验证中      : libsmartcols-2.23.2-61.el7_7.1.x86_64                     37/82

验证中      : 2:microcode_ctl-2.1-53.7.el7_7.x86_64                     38/82

验证中      : nss-util-3.44.0-4.el7_7.x86_64                            39/82

验证中      : cloud-utils-growpart-0.29-5.el7.noarch                    40/82

验证中      : nss-softokn-freebl-3.44.0-8.el7_7.x86_64                  41/82

验证中      : libblkid-2.23.2-61.el7_7.1.x86_64                         42/82

验证中      : nss-tools-3.44.0-4.el7.x86_64                             43/82

验证中      : curl-7.29.0-54.el7.x86_64                                 44/82

验证中      : firewalld-0.6.3-2.el7_7.1.noarch                          45/82

验证中      : nss-softokn-freebl-3.44.0-5.el7.x86_64                    46/82

验证中      : rsyslog-8.24.0-41.el7_7.x86_64                            47/82

验证中      : util-linux-2.23.2-61.el7.x86_64                           48/82

验证中      : nss-util-3.44.0-3.el7.x86_64                              49/82

验证中      : python-firewall-0.6.3-2.el7_7.1.noarch                    50/82

验证中      : kernel-headers-3.10.0-1062.1.2.el7.x86_64                 51/82

验证中      : procps-ng-3.3.10-26.el7.x86_64                            52/82

验证中      : 7:device-mapper-libs-1.02.158-2.el7.x86_64                53/82

验证中      : 2:microcode_ctl-2.1-53.el7.x86_64                         54/82

验证中      : libmount-2.23.2-61.el7.x86_64                             55/82

验证中      : nss-sysinit-3.44.0-4.el7.x86_64                           56/82

验证中      : systemd-sysv-219-67.el7_7.1.x86_64                        57/82

验证中      : patch-2.7.1-11.el7.x86_64                                 58/82

验证中      : kernel-tools-3.10.0-1062.1.2.el7.x86_64                   59/82

验证中      : libblkid-2.23.2-61.el7.x86_64                             60/82

验证中      : libuuid-2.23.2-61.el7.x86_64                              61/82

验证中      : selinux-policy-targeted-3.13.1-252.el7.1.noarch           62/82

验证中      : selinux-policy-3.13.1-252.el7.1.noarch                    63/82

验证中      : python-perf-3.10.0-1062.1.2.el7.x86_64                    64/82

验证中      : iproute-4.11.0-25.el7.x86_64                              65/82

验证中      : systemd-libs-219-67.el7_7.1.x86_64                        66/82

验证中      : sudo-1.8.23-4.el7.x86_64                                  67/82

验证中      : libcurl-7.29.0-54.el7.x86_64                              68/82

验证中      : 7:device-mapper-1.02.158-2.el7.x86_64                     69/82

验证中      : nss-softokn-3.44.0-5.el7.x86_64                           70/82

验证中      : systemd-219-67.el7_7.1.x86_64                             71/82

验证中      : hostname-3.13-3.el7.x86_64                                72/82

验证中      : ca-certificates-2018.2.22-70.0.el7_5.noarch               73/82

验证中      : firewalld-filesystem-0.6.3-2.el7_7.1.noarch               74/82

验证中      : nss-3.44.0-4.el7.x86_64                                   75/82

验证中      : 14:tcpdump-4.9.2-4.el7.x86_64                             76/82

验证中      : nss-softokn-freebl-3.44.0-5.el7.i686                      77/82

验证中      : numactl-libs-2.0.12-3.el7.x86_64                          78/82

验证中      : cloud-utils-growpart-0.27-10.el7.x86_64                   79/82

验证中      : binutils-2.27-41.base.el7.x86_64                          80/82

验证中      : kernel-tools-libs-3.10.0-1062.1.2.el7.x86_64              81/82

验证中      : libsmartcols-2.23.2-61.el7.x86_64                         82/82

已安装:

kernel.x86_64 0:3.10.0-1062.9.1.el7 kernel-devel.x86_64 0:3.10.0-1062.9.1.el7

更新完毕:

binutils.x86_64 0:2.27-41.base.el7_7.1

ca-certificates.noarch 0:2019.2.32-76.el7_7

cloud-utils-growpart.noarch 0:0.29-5.el7

curl.x86_64 0:7.29.0-54.el7_7.1

device-mapper.x86_64 7:1.02.158-2.el7_7.2

device-mapper-libs.x86_64 7:1.02.158-2.el7_7.2

firewalld.noarch 0:0.6.3-2.el7_7.2

firewalld-filesystem.noarch 0:0.6.3-2.el7_7.2

hostname.x86_64 0:3.13-3.el7_7.1

iproute.x86_64 0:4.11.0-25.el7_7.2

kernel-headers.x86_64 0:3.10.0-1062.9.1.el7

kernel-tools.x86_64 0:3.10.0-1062.9.1.el7

kernel-tools-libs.x86_64 0:3.10.0-1062.9.1.el7

libblkid.x86_64 0:2.23.2-61.el7_7.1

libcurl.x86_64 0:7.29.0-54.el7_7.1

libmount.x86_64 0:2.23.2-61.el7_7.1

libsmartcols.x86_64 0:2.23.2-61.el7_7.1

libuuid.x86_64 0:2.23.2-61.el7_7.1

microcode_ctl.x86_64 2:2.1-53.7.el7_7

nss.x86_64 0:3.44.0-7.el7_7

nss-softokn.x86_64 0:3.44.0-8.el7_7

nss-softokn-freebl.i686 0:3.44.0-8.el7_7

nss-softokn-freebl.x86_64 0:3.44.0-8.el7_7

nss-sysinit.x86_64 0:3.44.0-7.el7_7

nss-tools.x86_64 0:3.44.0-7.el7_7

nss-util.x86_64 0:3.44.0-4.el7_7

numactl-libs.x86_64 0:2.0.12-3.el7_7.1

patch.x86_64 0:2.7.1-12.el7_7

procps-ng.x86_64 0:3.3.10-26.el7_7.1

python-firewall.noarch 0:0.6.3-2.el7_7.2

python-perf.x86_64 0:3.10.0-1062.9.1.el7

rsyslog.x86_64 0:8.24.0-41.el7_7.2

selinux-policy.noarch 0:3.13.1-252.el7_7.6

selinux-policy-targeted.noarch 0:3.13.1-252.el7_7.6

sudo.x86_64 0:1.8.23-4.el7_7.1

systemd.x86_64 0:219-67.el7_7.2

systemd-libs.x86_64 0:219-67.el7_7.2

systemd-sysv.x86_64 0:219-67.el7_7.2

tcpdump.x86_64 14:4.9.2-4.el7_7.1

util-linux.x86_64 0:2.23.2-61.el7_7.1

完毕!

[[email protected] ~]#

[[email protected] ~]#

[[email protected] ~]# rpm -qa | grep mysql

[[email protected] ~]# yum list installed | grep mysql

[[email protected] ~]# mysql

-bash: mysql: 未找到命令

[[email protected] ~]# cd ../

[[email protected] /]# rpm -qa | grep mysql

[[email protected] /]# rpm -ivh http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm

获取http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm

警告:/var/tmp/rpm-tmp.0Wc4ZB: 头V3 DSA/SHA1 Signature, 密钥 ID 5072e1f5: NOKEY

准备中...                          ################################# [100%]

正在升级/安装...

1:mysql57-community-release-el7-8  ################################# [100%]

[[email protected] /]# yum install -y mysql-server

已加载插件:fastestmirror

Loading mirror speeds from cached hostfile

mysql-connectors-community                               | 2.5 kB     00:00

mysql-tools-community                                    | 2.5 kB     00:00

mysql57-community                                        | 2.5 kB     00:00

(1/3): mysql57-community/x86_64/primary_db                 | 198 kB   00:01

(2/3): mysql-tools-community/x86_64/primary_db             |  69 kB   00:01

(3/3): mysql-connectors-community/x86_64/primary_db        |  53 kB   00:15

正在解决依赖关系

--> 正在检查事务

---> 软件包 mysql-community-server.x86_64.0.5.7.29-1.el7 将被 安装

--> 正在处理依赖关系 mysql-community-common(x86-64) = 5.7.29-1.el7,它被软件包 mysql-community-server-5.7.29-1.el7.x86_64 需要

--> 正在处理依赖关系 mysql-community-client(x86-64) >= 5.7.9,它被软件包 mysql-community-server-5.7.29-1.el7.x86_64 需要

--> 正在处理依赖关系 libaio.so.1(LIBAIO_0.4)(64bit),它被软件包 mysql-community-server-5.7.29-1.el7.x86_64 需要

--> 正在处理依赖关系 libaio.so.1(LIBAIO_0.1)(64bit),它被软件包 mysql-community-server-5.7.29-1.el7.x86_64 需要

--> 正在处理依赖关系 libaio.so.1()(64bit),它被软件包 mysql-community-server-5.7.29-1.el7.x86_64 需要

--> 正在检查事务

---> 软件包 libaio.x86_64.0.0.3.109-13.el7 将被 安装

---> 软件包 mysql-community-client.x86_64.0.5.7.29-1.el7 将被 安装

--> 正在处理依赖关系 mysql-community-libs(x86-64) >= 5.7.9,它被软件包 mysql-community-client-5.7.29-1.el7.x86_64 需要

---> 软件包 mysql-community-common.x86_64.0.5.7.29-1.el7 将被 安装

--> 正在检查事务

---> 软件包 mariadb-libs.x86_64.1.5.5.64-1.el7 将被 取代

--> 正在处理依赖关系 libmysqlclient.so.18()(64bit),它被软件包 2:postfix-2.10.1-7.el7.x86_64 需要

--> 正在处理依赖关系 libmysqlclient.so.18(libmysqlclient_18)(64bit),它被软件包 2:postfix-2.10.1-7.el7.x86_64 需要

---> 软件包 mysql-community-libs.x86_64.0.5.7.29-1.el7 将被 舍弃

--> 正在检查事务

---> 软件包 mysql-community-libs-compat.x86_64.0.5.7.29-1.el7 将被 舍弃

--> 解决依赖关系完成

依赖关系解决

================================================================================

Package                      架构    版本             源                  大小

================================================================================

正在安装:

mysql-community-libs         x86_64  5.7.29-1.el7     mysql57-community  2.5 M

替换  mariadb-libs.x86_64 1:5.5.64-1.el7

mysql-community-libs-compat  x86_64  5.7.29-1.el7     mysql57-community  1.3 M

替换  mariadb-libs.x86_64 1:5.5.64-1.el7

mysql-community-server       x86_64  5.7.29-1.el7     mysql57-community  175 M

为依赖而安装:

libaio                       x86_64  0.3.109-13.el7   base                24 k

mysql-community-client       x86_64  5.7.29-1.el7     mysql57-community   26 M

mysql-community-common       x86_64  5.7.29-1.el7     mysql57-community  311 k

事务概要

================================================================================

安装  3 软件包 (+3 依赖软件包)

总下载量:206 M

Downloading packages:

(1/6): libaio-0.3.109-13.el7.x86_64.rpm                    |  24 kB   00:00

warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-common-5.7.29-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

mysql-community-common-5.7.29-1.el7.x86_64.rpm 的公钥尚未安装

(2/6): mysql-community-common-5.7.29-1.el7.x86_64.rpm      | 311 kB   00:01

(3/6): mysql-community-libs-5.7.29-1.el7.x86_64.rpm        | 2.5 MB   00:02

(4/6): mysql-community-libs-compat-5.7.29-1.el7.x86_64.rpm | 1.3 MB   00:01

(5/6): mysql-community-client-5.7.29-1.el7.x86_64.rpm      |  26 MB   00:14

(6/6): mysql-community-server-5.7.29-1.el7.x86_64.rpm      | 175 MB   00:29

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

总计                                               5.7 MB/s | 206 MB  00:36

从 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql 检索密钥

导入 GPG key 0x5072E1F5:

用户ID     : "MySQL Release Engineering <[email protected]>"

指纹       : a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5

软件包     : mysql57-community-release-el7-8.noarch (installed)

来自       : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

警告:RPM 数据库已被非 yum 程序修改。

正在安装    : mysql-community-common-5.7.29-1.el7.x86_64                  1/7

正在安装    : mysql-community-libs-5.7.29-1.el7.x86_64                    2/7

正在安装    : mysql-community-client-5.7.29-1.el7.x86_64                  3/7

正在安装    : libaio-0.3.109-13.el7.x86_64                                4/7

正在安装    : mysql-community-server-5.7.29-1.el7.x86_64                  5/7

正在安装    : mysql-community-libs-compat-5.7.29-1.el7.x86_64             6/7

正在删除    : 1:mariadb-libs-5.5.64-1.el7.x86_64                          7/7

验证中      : mysql-community-common-5.7.29-1.el7.x86_64                  1/7

验证中      : mysql-community-libs-5.7.29-1.el7.x86_64                    2/7

验证中      : mysql-community-client-5.7.29-1.el7.x86_64                  3/7

验证中      : mysql-community-server-5.7.29-1.el7.x86_64                  4/7

验证中      : libaio-0.3.109-13.el7.x86_64                                5/7

验证中      : mysql-community-libs-compat-5.7.29-1.el7.x86_64             6/7

验证中      : 1:mariadb-libs-5.5.64-1.el7.x86_64                          7/7

已安装:

mysql-community-libs.x86_64 0:5.7.29-1.el7

mysql-community-libs-compat.x86_64 0:5.7.29-1.el7

mysql-community-server.x86_64 0:5.7.29-1.el7

作为依赖被安装:

libaio.x86_64 0:0.3.109-13.el7

mysql-community-client.x86_64 0:5.7.29-1.el7

mysql-community-common.x86_64 0:5.7.29-1.el7

替代:

mariadb-libs.x86_64 1:5.5.64-1.el7

完毕!

[[email protected] /]# systemctl enable mysqld.service

[[email protected] /]# systemctl list-unit-files | grep mysqld

mysqld.service                                enabled

mysqld@.service                               disabled

[[email protected] /]# systemctl start mysqld.service

[[email protected] /]# grep ‘temporary password‘ /var/log/mysqld.log

2020-01-22T05:05:37.197545Z 1 [Note] A temporary password is generated for [email protected]: ;&a+w+zHe2eH

[[email protected] /]# mysql -uroot -p

Enter password:

ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)

[[email protected] /]# mysql -uroot -p

Enter password:

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 3

Server version: 5.7.29

Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

mysql> SET PASSWORD = PASSWORD(‘zwj20190808!‘)

-> GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘zwj20190808!‘ WITH GRANT OPTION

-> flush privileges

-> mysql -u root -p

-> exit

-> esc

-> cd ./

-> exit()

-> exit

-> mysql > quit

-> quit

-> quit;

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘zwj20190808!‘ WITH GRAN‘ at line 2

mysql> exit

Bye

[[email protected] /]# mysql -u root -p

Enter password:

ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)

[[email protected] /]#

[[email protected] /]# mysql -u root -p

Enter password:

ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)

[[email protected] /]# mysql -u root -p

Enter password:

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 6

Server version: 5.7.29

Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

mysql> set global validate_password_policy=LOW;

Query OK, 0 rows affected (0.00 sec)

mysql> set global validate_password_length=12;

Query OK, 0 rows affected (0.00 sec)

mysql> ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘zwj20190808!‘;

Query OK, 0 rows affected (0.01 sec)

mysql> exit;

Bye

[[email protected] /]# mysql -u root -p

Enter password:

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 7

Server version: 5.7.29 MySQL Community Server (GPL)

Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

mysql> GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘zwj20190808!‘ WITH GRANT OPTION;

Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)

mysql> exit;

Bye

[[email protected] /]# mysql -u root -p

Enter password:

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 8

Server version: 5.7.29 MySQL Community Server (GPL)

Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

mysql> use mysql

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Database changed

mysql> select user, password, host from user;

ERROR 1054 (42S22): Unknown column ‘password‘ in ‘field list‘

mysql> select user from user;

+---------------+

| user          |

+---------------+

| root          |

| mysql.session |

| mysql.sys     |

| root          |

+---------------+

4 rows in set (0.00 sec)

mysql> exit;

Bye

[[email protected] /]# mysql

ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO)

[[email protected] /]# cd ../

[[email protected] /]# mysql -u root -p

Enter password:

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 10

Server version: 5.7.29 MySQL Community Server (GPL)

Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

mysql> show databases;

+--------------------+

| Database           |

+--------------------+

| information_schema |

| mysql              |

| performance_schema |

| sys                |

+--------------------+

4 rows in set (0.00 sec)

mysql> select t.host from user t where t.user=‘root‘;

ERROR 1046 (3D000): No database selected

mysql> exit;

Bye

[[email protected] /]# mysql -u root -p

Enter password:

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 11

Server version: 5.7.29 MySQL Community Server (GPL)

Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

mysql> select t.host from user t where t.user=‘root‘;

ERROR 1046 (3D000): No database selected

mysql> use mysql;

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Database changed

mysql> update user set password=password(‘zwj20190808!‘) where user=‘root‘;

ERROR 1054 (42S22): Unknown column ‘password‘ in ‘field list‘

mysql> update mysql.user set authentication_string=password(‘zwj20190808!‘) where user=‘root‘;

Query OK, 0 rows affected, 1 warning (0.00 sec)

Rows matched: 2  Changed: 0  Warnings: 1

mysql>  select t.host from user t where t.user=‘root‘;

+-----------+

| host      |

+-----------+

| %         |

| localhost |

+-----------+

2 rows in set (0.00 sec)

mysql> update user set host=‘%‘ where user=‘root‘;

ERROR 1062 (23000): Duplicate entry ‘%-root‘ for key ‘PRIMARY‘

mysql> exit;

Bye

[[email protected] /]# firewall-cmd --zone=public --add-port=3306/tcp --permanent;

FirewallD is not running

[[email protected] /]# systemctl status firewalld

● firewalld.service - firewalld - dynamic firewall daemon

Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)

Active: inactive (dead)

Docs: man:firewalld(1)

[[email protected] /]# systemctl start firewalld

[[email protected] /]# firewall-cmd --zone=public --add-port=3306/tcp --permanent;

success

[[email protected] /]# firewall-cmd --reload

success

[[email protected] /]#

原文地址:https://www.cnblogs.com/shixingwen/p/12228502.html

时间: 2024-12-14 13:11:57

阿里云MySQL安装到centos,并链接。的相关文章

阿里云Linux安装软件镜像源

阿里云是最近新出的一个镜像源.得益与阿里云的高速发展,这么大的需求,肯定会推出自己的镜像源.阿里云Linux安装镜像源地址:http://mirrors.aliyun.com/ CentOS系统更换软件安装源第一步:备份你的原镜像文件,以免出错后可以恢复. mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup第二步:下载新的CentOS-Base.repo 到/etc/yum.repos.d/C

(二)基于阿里云的MQTT远程控制(购买阿里云,在云端安装MQTT,测试MQTT远程通信)

QQ名称为Friday~的网友把他自己买MQTT的过程截图发给了我,今天就说一下如何购买阿里云,安装MQTT可以参考 http://www.cnblogs.com/yangfengwu/p/7764667.html https://blog.csdn.net/frankcheng5143/article/details/52045501 如果有什么问题可以在上面的群里面向他请教 基于阿里云的远程控制,其实就是在云端安装服务器,然后我们的WiFi设备和手机都去连接云端服务器(云端服务器就相当于云端

Android应用通过JDBC直连阿里云MySQL数据库

1.设置白名单,获取外网连接地址 外部设备要访问阿里云MySQL数据库,则需要设置白名单,具体操作链接: https://help.aliyun.com/document_detail/43185.html?spm=a2c4g.11186623.2.14.d8c4110bf110vr#concept-pdr-k2f-vdb 设置白名单,再获取外网连接地址 2. 配置JDBC 配置JDBC的时候的时候将外网地址替换称IP地址即可. 外网连接地址类似:rdssoxxxxxxxxx.mysql.rds

阿里云liunx-ubuntu安装中文

ubuntu安装中文支持--让你的ub真正变成中文作者: 来源:ubuntu在安装的时候会提示选择语言,但选择了中文之后,系统里面还有很多英文并不是ub对中文支持不好 你根本就没有安装中文支持~ 首先需要网络如果没有网络什么都很难弄. 其次需要更新 更新源 终端中输入:sudo gedit /etc/apt/sources.list 在打开的文件末尾加入如下信息 #中国台湾 台湾大学更新服务器 deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy mai

阿里云ECS安装好宝塔 但访问不了面板的解决办法

阿里云ECS安装好面板后,访问不了宝塔面板的情况,这种错误一般都是阿里云的安全组没有放行8888端口导致的,因为宝塔面板默认是以IP:8888的形式访问的.所以我们要进入到阿里云控制台 放行8888端口,最终才能打开面板. 登陆控制台-安全组-选择你ECS实例使用的安全组策略并配置规则 选择公网入方向-新建规则.注意:如果没有内网公网选择 直接在入方向放行8888端口. 放行8888端口 并开放所有ip访问 点击确定. 要完整使用宝塔面板的所有功能,根据需要放行20 21 30000-40000

数据从腾讯云mysql转移到阿里云mysql

条件: 1 本机和腾讯云联通 2 本机和阿里云联通 步骤: 1 通过腾讯云的跳板机,将mysql中某个指定表的数据导出,并下载到本机(~/download),导出脚本如下: mysqldump -uroot -proot db_name table_name > /tmp/table_name.sql 2 通过本机登陆阿里云上的mysql mysql -h阿里云IP -u阿里云mysql用户名 -p阿里云mysql密码 3 远程登陆阿里云mysql之后,通过如下命令来导入 从腾讯云下载的数据:

阿里云 CenterOS 安装mysql java tomcat gcc nginx步骤

由于公司需要,申请了一台阿里云服务器,购买的过程很简单.买完后系统就安装好了,可以直接使用.在使用的过程中遇到了些问题,再次记录一下. 我用的操作系统是centos 5.4 32位的. 1.磁盘挂载 初始化按照后只有一个系统盘,没有数据盘.所以第一步要挂在数据盘. 可以用  fdisk -l|grep Disk  查看你的系统有几块盘. 如: Disk /dev/hda: 21.4 GB, 21474836480 bytes Disk /dev/xvdb: 85.8 GB, 8589934592

阿里云 CentOS7 安装MySQL (MariaDB)

自从 CentOS 7 开始,自带的数据库就变成 MariaDB 了,yum 安装之后的默认版本是 5.5 添加Maria源 添加并编辑文件 添加MariaDB源 vi /etc/yum.repos.d/MariaDB.repo 粘贴官方的或者阿里云的镜像: [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.3/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-

使用docker在阿里云上安装mysql和连接

https://hub.docker.com/   可搜索docker的镜像仓库地址 1.docker search mysql 查找镜像仓库中的mysql 2.docker pull mysql  默认拉取最新的版本 3. docker images 查看本地仓库是否拉取成功 4.docker run --name mysql -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 -d mysql   启动 5.docker ps 查看正在运行的镜像 //此时,已经