Last login: Thu Apr 9 07:46:27 2020 from 192.168.249.1
[root@localhost ~]# ls
anaconda-ks.cfg
[root@localhost ~]# ip addr
1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:4f:93:45 brd ff:ff:ff:ff:ff:ff
inet 192.168.249.200/24 brd 192.168.249.255 scope global noprefixroute ens33
valid_lft forever preferred_lft forever
inet6 fe80::ae5e:9330:aef3:6729/64 scope link noprefixroute
valid_lft forever preferred_lft forever
[root@localhost ~]# rpm -qa|grep -i mysql
[root@localhost ~]# rpm -qa|grep -i mysqld
[root@localhost ~]# wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
-bash: wget: command not found
[root@localhost ~]# yum install wget
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.bfsu.edu.cn
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/4): updates/7/x86_64/primary_db | 2.1 MB 00:00:01
(2/4): base/7/x86_64/group_gz | 153 kB 00:00:01
(3/4): extras/7/x86_64/primary_db | 194 kB 00:00:01
(4/4): base/7/x86_64/primary_db | 6.1 MB 00:00:02
Resolving Dependencies
--> Running transaction check
---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
wget x86_64 1.14-18.el7_6.1 base 547 k
Transaction Summary
====================================================================================================================================
Install 1 Package
Total download size: 547 k
Installed size: 2.0 M
Is this ok [y/d/N]: y
Downloading packages:
wget-1.14-18.el7_6.1.x86_64.rpm | 547 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : wget-1.14-18.el7_6.1.x86_64 1/1
Verifying : wget-1.14-18.el7_6.1.x86_64 1/1
Installed:
wget.x86_64 0:1.14-18.el7_6.1
Complete!
[root@localhost ~]# wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
--2020-06-06 10:06:49-- http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
Resolving dev.mysql.com (dev.mysql.com)... 137.254.60.11
Connecting to dev.mysql.com (dev.mysql.com)|137.254.60.11|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm [following]
--2020-06-06 10:06:50-- https://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
Connecting to dev.mysql.com (dev.mysql.com)|137.254.60.11|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://repo.mysql.com//mysql57-community-release-el7-10.noarch.rpm [following]
--2020-06-06 10:06:52-- https://repo.mysql.com//mysql57-community-release-el7-10.noarch.rpm
Resolving repo.mysql.com (repo.mysql.com)... 23.13.185.161
Connecting to repo.mysql.com (repo.mysql.com)|23.13.185.161|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25548 (25K) [application/x-redhat-package-manager]
Saving to: 鈥榤ysql57-community-release-el7-10.noarch.rpm鈥?
100%[==========================================================================================>] 25,548 --.-K/s in 0.09s
2020-06-06 10:06:52 (287 KB/s) - 鈥榤ysql57-community-release-el7-10.noarch.rpm鈥?saved [25548/25548]
-c: No such file or directory
No URLs found in -c.
FINISHED --2020-06-06 10:06:52--
Total wall clock time: 3.8s
Downloaded: 1 files, 25K in 0.09s (287 KB/s)
[root@localhost ~]# ls
anaconda-ks.cfg mysql57-community-release-el7-10.noarch.rpm
[root@localhost ~]# clear
[root@localhost ~]# ls
anaconda-ks.cfg mysql57-community-release-el7-10.noarch.rpm
[root@localhost ~]# yum -y install mysql57-community-release-el7-10.noarch.rpm
Loaded plugins: fastestmirror
Examining mysql57-community-release-el7-10.noarch.rpm: mysql57-community-release-el7-10.noarch
Marking mysql57-community-release-el7-10.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package mysql57-community-release.noarch 0:el7-10 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
mysql57-community-release noarch el7-10 /mysql57-community-release-el7-10.noarch 30 k
Transaction Summary
====================================================================================================================================
Install 1 Package
Total size: 30 k
Installed size: 30 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : mysql57-community-release-el7-10.noarch 1/1
Verifying : mysql57-community-release-el7-10.noarch 1/1
Installed:
mysql57-community-release.noarch 0:el7-10
Complete!
[root@localhost ~]# yum -y install mysql-community-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.bfsu.edu.cn
mysql-connectors-community | 2.5 kB 00:00:00
mysql-tools-community | 2.5 kB 00:00:00
mysql57-community | 2.5 kB 00:00:00
(1/3): mysql-connectors-community/x86_64/primary_db | 57 kB 00:00:00
(2/3): mysql-tools-community/x86_64/primary_db | 72 kB 00:00:00
(3/3): mysql57-community/x86_64/primary_db | 213 kB 00:00:01
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.7.30-1.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.7.30-1.el7 for package: mysql-community-server-5.7.30-1.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 5.7.9 for package: mysql-community-server-5.7.30-1.el7.x86_64
--> Processing Dependency: net-tools for package: mysql-community-server-5.7.30-1.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.7.30-1.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 5.7.9 for package: mysql-community-client-5.7.30-1.el7.x86_64
---> Package mysql-community-common.x86_64 0:5.7.30-1.el7 will be installed
---> Package net-tools.x86_64 0:2.0-0.25.20131004git.el7 will be installed
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.56-2.el7 will be obsoleted
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
---> Package mysql-community-libs.x86_64 0:5.7.30-1.el7 will be obsoleting
--> Running transaction check
---> Package mysql-community-libs-compat.x86_64 0:5.7.30-1.el7 will be obsoleting
---> Package postfix.x86_64 2:2.10.1-6.el7 will be updated
---> Package postfix.x86_64 2:2.10.1-9.el7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
mysql-community-libs x86_64 5.7.30-1.el7 mysql57-community 2.3 M
replacing mariadb-libs.x86_64 1:5.5.56-2.el7
mysql-community-libs-compat x86_64 5.7.30-1.el7 mysql57-community 1.2 M
replacing mariadb-libs.x86_64 1:5.5.56-2.el7
mysql-community-server x86_64 5.7.30-1.el7 mysql57-community 173 M
Installing for dependencies:
mysql-community-client x86_64 5.7.30-1.el7 mysql57-community 25 M
mysql-community-common x86_64 5.7.30-1.el7 mysql57-community 311 k
net-tools x86_64 2.0-0.25.20131004git.el7 base 306 k
Updating for dependencies:
postfix x86_64 2:2.10.1-9.el7 base 2.4 M
Transaction Summary
====================================================================================================================================
Install 3 Packages (+3 Dependent packages)
Upgrade ( 1 Dependent package)
Total download size: 205 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-client-5.7.30-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Public key for mysql-community-client-5.7.30-1.el7.x86_64.rpm is not installed
(1/7): mysql-community-client-5.7.30-1.el7.x86_64.rpm | 25 MB 00:00:05
(2/7): mysql-community-libs-5.7.30-1.el7.x86_64.rpm | 2.3 MB 00:00:00
(3/7): mysql-community-libs-compat-5.7.30-1.el7.x86_64.rpm | 1.2 MB 00:00:00
(4/7): mysql-community-common-5.7.30-1.el7.x86_64.rpm | 311 kB 00:00:06
(5/7): net-tools-2.0-0.25.20131004git.el7.x86_64.rpm | 306 kB 00:00:01
(6/7): postfix-2.10.1-9.el7.x86_64.rpm | 2.4 MB 00:00:02
(7/7): mysql-community-server-5.7.30-1.el7.x86_64.rpm | 173 MB 00:00:35
------------------------------------------------------------------------------------------------------------------------------------
Total 4.9 MB/s | 205 MB 00:00:42
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Importing GPG key 0x5072E1F5:
Userid : "MySQL Release Engineering "
Fingerprint: a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5
Package : mysql57-community-release-el7-10.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : mysql-community-common-5.7.30-1.el7.x86_64 1/9
Installing : mysql-community-libs-5.7.30-1.el7.x86_64 2/9
Installing : mysql-community-client-5.7.30-1.el7.x86_64 3/9
Installing : mysql-community-libs-compat-5.7.30-1.el7.x86_64 4/9
Installing : net-tools-2.0-0.25.20131004git.el7.x86_64 5/9
Installing : mysql-community-server-5.7.30-1.el7.x86_64 6/9
Updating : 2:postfix-2.10.1-9.el7.x86_64 7/9
Cleanup : 2:postfix-2.10.1-6.el7.x86_64 8/9
Erasing : 1:mariadb-libs-5.5.56-2.el7.x86_64 9/9
Verifying : mysql-community-server-5.7.30-1.el7.x86_64 1/9
Verifying : mysql-community-libs-5.7.30-1.el7.x86_64 2/9
Verifying : mysql-community-client-5.7.30-1.el7.x86_64 3/9
Verifying : mysql-community-libs-compat-5.7.30-1.el7.x86_64 4/9
Verifying : net-tools-2.0-0.25.20131004git.el7.x86_64 5/9
Verifying : mysql-community-common-5.7.30-1.el7.x86_64 6/9
Verifying : 2:postfix-2.10.1-9.el7.x86_64 7/9
Verifying : 2:postfix-2.10.1-6.el7.x86_64 8/9
Verifying : 1:mariadb-libs-5.5.56-2.el7.x86_64 9/9
Installed:
mysql-community-libs.x86_64 0:5.7.30-1.el7 mysql-community-libs-compat.x86_64 0:5.7.30-1.el7
mysql-community-server.x86_64 0:5.7.30-1.el7
Dependency Installed:
mysql-community-client.x86_64 0:5.7.30-1.el7 mysql-community-common.x86_64 0:5.7.30-1.el7
net-tools.x86_64 0:2.0-0.25.20131004git.el7
Dependency Updated:
postfix.x86_64 2:2.10.1-9.el7
Replaced:
mariadb-libs.x86_64 1:5.5.56-2.el7
Complete!
[root@localhost ~]# systemctl start mysqld.service
[root@localhost ~]# systemctl status mysqld.service
鈼?[0m mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2020-06-06 10:10:53 EDT; 12s ago
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Process: 2261 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=0/SUCCESS)
Process: 2211 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
Main PID: 2264 (mysqld)
CGroup: /system.slice/mysqld.service
鈹斺攢2264 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
Jun 06 10:10:50 localhost.localdomain systemd[1]: Starting MySQL Server...
Jun 06 10:10:53 localhost.localdomain systemd[1]: Started MySQL Server.
[root@localhost ~]#