首页 > 数据库技术 > 详细

centos7.6安装MySQL8.0的操作记录

时间:2019-02-23 14:38:32      阅读:1100      评论:0      收藏:0      [点我收藏+]

Last login: Sat Feb 23 07:27:35 2019 from 10.0.0.3
[root@vmhzpmysql etc]# rpm -qa|grep -i mariadb
mariadb-libs-5.5.60-1.el7_5.x86_64
[root@vmhzpmysql etc]# rpm -qa|grep mariadb|xargs rpm -e --nodeps
[root@vmhzpmysql etc]# rpm -qa|grep -i mariadb
[root@vmhzpmysql ~]# rpm -pa | grep mysql
[root@vmhzpmysql ~]# find / -name mysql
/etc/selinux/targeted/active/modules/100/mysql
/usr/lib64/mysql
/usr/share/grafana/public/app/plugins/datasource/mysql
[root@vmhzpmysql ~]# rpm -pa | grep mariadb
[root@vmhzpmysql ~]# cd /home
[root@vmhzpmysql home]# rz
-bash: rz: command not found
[root@vmhzpmysql home]# ls
[root@vmhzpmysql home]# wget https://ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz
--2019-02-23 19:06:54-- https://ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz
Resolving ohse.de (ohse.de)... 94.130.158.36
Connecting to ohse.de (ohse.de)|94.130.158.36|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 280938 (274K) [application/x-gzip]
Saving to: ‘lrzsz-0.12.20.tar.gz’

100%[================================================>] 280,938 5.01KB/s in 54s

2019-02-23 19:07:49 (5.13 KB/s) - ‘lrzsz-0.12.20.tar.gz’ saved [280938/280938]

[root@vmhzpmysql home]# ls
lrzsz-0.12.20.tar.gz
[root@vmhzpmysql home]# tar zxvf lrzsz-0.12.20.tar.gz
lrzsz-0.12.20/
lrzsz-0.12.20/Makefile.in
lrzsz-0.12.20/README
lrzsz-0.12.20/ABOUT-NLS
lrzsz-0.12.20/AUTHORS
lrzsz-0.12.20/COPYING
lrzsz-0.12.20/ChangeLog
lrzsz-0.12.20/INSTALL
lrzsz-0.12.20/Makefile.am
lrzsz-0.12.20/NEWS
lrzsz-0.12.20/Specfile.in
lrzsz-0.12.20/THANKS
lrzsz-0.12.20/TODO
lrzsz-0.12.20/acconfig.h
lrzsz-0.12.20/acinclude.m4
lrzsz-0.12.20/aclocal.m4
lrzsz-0.12.20/config.guess
lrzsz-0.12.20/config.h.in
lrzsz-0.12.20/config.sub
lrzsz-0.12.20/configure
lrzsz-0.12.20/configure.in
lrzsz-0.12.20/install-sh
lrzsz-0.12.20/missing
lrzsz-0.12.20/mkinstalldirs
lrzsz-0.12.20/stamp-h.in
lrzsz-0.12.20/systype.in
lrzsz-0.12.20/check.lrzsz
lrzsz-0.12.20/COMPATABILITY
lrzsz-0.12.20/README.cvs
lrzsz-0.12.20/README.isdn4linux
lrzsz-0.12.20/README.gettext
lrzsz-0.12.20/rpmrc
lrzsz-0.12.20/buildrpm
lrzsz-0.12.20/fastcheck.sh
lrzsz-0.12.20/README.tests
lrzsz-0.12.20/beos-runpiped.c
lrzsz-0.12.20/fastcheck.beos
lrzsz-0.12.20/lib/
lrzsz-0.12.20/lib/Makefile.in
lrzsz-0.12.20/lib/Makefile.am
lrzsz-0.12.20/lib/alloca.c
lrzsz-0.12.20/lib/ansi2knr.1
lrzsz-0.12.20/lib/ansi2knr.c
lrzsz-0.12.20/lib/getopt.c
lrzsz-0.12.20/lib/getopt1.c
lrzsz-0.12.20/lib/mkdir.c
lrzsz-0.12.20/lib/mktime.c
lrzsz-0.12.20/lib/stpcpy.c
lrzsz-0.12.20/lib/strdup.c
lrzsz-0.12.20/lib/strerror.c
lrzsz-0.12.20/lib/strftime.c
lrzsz-0.12.20/lib/strpbrk.c
lrzsz-0.12.20/lib/strstr.c
lrzsz-0.12.20/lib/strtol.c
lrzsz-0.12.20/lib/strtoul.c
lrzsz-0.12.20/lib/vasprintf.c
lrzsz-0.12.20/lib/long-options.c
lrzsz-0.12.20/lib/xstrtol.c
lrzsz-0.12.20/lib/xstrtoul.c
lrzsz-0.12.20/lib/error.c
lrzsz-0.12.20/lib/getopt.h
lrzsz-0.12.20/lib/long-options.h
lrzsz-0.12.20/lib/xstrtol.h
lrzsz-0.12.20/lib/xstrtoul.h
lrzsz-0.12.20/lib/error.h
lrzsz-0.12.20/intl/
lrzsz-0.12.20/intl/ChangeLog
lrzsz-0.12.20/intl/Makefile.in
lrzsz-0.12.20/intl/linux-msg.sed
lrzsz-0.12.20/intl/po2tbl.sed.in
lrzsz-0.12.20/intl/xopen-msg.sed
lrzsz-0.12.20/intl/gettext.h
lrzsz-0.12.20/intl/gettextP.h
lrzsz-0.12.20/intl/hash-string.h
lrzsz-0.12.20/intl/libgettext.h
lrzsz-0.12.20/intl/loadinfo.h
lrzsz-0.12.20/intl/bindtextdom.c
lrzsz-0.12.20/intl/dcgettext.c
lrzsz-0.12.20/intl/dgettext.c
lrzsz-0.12.20/intl/gettext.c
lrzsz-0.12.20/intl/finddomain.c
lrzsz-0.12.20/intl/loadmsgcat.c
lrzsz-0.12.20/intl/localealias.c
lrzsz-0.12.20/intl/textdomain.c
lrzsz-0.12.20/intl/l10nflist.c
lrzsz-0.12.20/intl/explodename.c
lrzsz-0.12.20/intl/intl-compat.c
lrzsz-0.12.20/intl/cat-compat.c
lrzsz-0.12.20/intl/VERSION
lrzsz-0.12.20/src/
lrzsz-0.12.20/src/Makefile.in
lrzsz-0.12.20/src/Makefile.am
lrzsz-0.12.20/src/ansi2knr.1
lrzsz-0.12.20/src/ansi2knr.c
lrzsz-0.12.20/src/lrzszbug.in
lrzsz-0.12.20/src/lrz.c
lrzsz-0.12.20/src/timing.c
lrzsz-0.12.20/src/zperr.c
lrzsz-0.12.20/src/zreadline.c
lrzsz-0.12.20/src/crctab.c
lrzsz-0.12.20/src/rbsb.c
lrzsz-0.12.20/src/zm.c
lrzsz-0.12.20/src/protname.c
lrzsz-0.12.20/src/tcp.c
lrzsz-0.12.20/src/lsyslog.c
lrzsz-0.12.20/src/canit.c
lrzsz-0.12.20/src/lsz.c
lrzsz-0.12.20/src/timing.h
lrzsz-0.12.20/src/zglobal.h
lrzsz-0.12.20/src/zmodem.h
lrzsz-0.12.20/po/
lrzsz-0.12.20/po/ChangeLog
lrzsz-0.12.20/po/Makefile.in.in
lrzsz-0.12.20/po/POTFILES.in
lrzsz-0.12.20/po/lrzsz.pot
lrzsz-0.12.20/po/stamp-cat-id
lrzsz-0.12.20/po/de.po
lrzsz-0.12.20/po/de.gmo
lrzsz-0.12.20/po/cat-id-tbl.c
lrzsz-0.12.20/man/
lrzsz-0.12.20/man/Makefile.in
lrzsz-0.12.20/man/Makefile.am
lrzsz-0.12.20/man/lrz.1
lrzsz-0.12.20/man/lsz.1
lrzsz-0.12.20/testsuite/
lrzsz-0.12.20/testsuite/Makefile.in
lrzsz-0.12.20/testsuite/Makefile.am
lrzsz-0.12.20/testsuite/config/
lrzsz-0.12.20/testsuite/config/unix.exp
lrzsz-0.12.20/testsuite/lib/
lrzsz-0.12.20/testsuite/lib/lrzsz.exp
lrzsz-0.12.20/testsuite/lrzsz/
lrzsz-0.12.20/testsuite/lrzsz/abuse.exp
lrzsz-0.12.20/testsuite/lrzsz/command.exp
lrzsz-0.12.20/testsuite/lrzsz/compatability.exp
lrzsz-0.12.20/testsuite/lrzsz/crc.exp
lrzsz-0.12.20/testsuite/lrzsz/manage.exp
lrzsz-0.12.20/testsuite/lrzsz/newer.exp
lrzsz-0.12.20/testsuite/lrzsz/path.exp
lrzsz-0.12.20/testsuite/lrzsz/resume.exp
lrzsz-0.12.20/testsuite/lrzsz/timing.exp
lrzsz-0.12.20/testsuite/lrzsz/uppercase.exp
lrzsz-0.12.20/testsuite/lrzsz/window.exp
lrzsz-0.12.20/testsuite/lrzsz/xmodem.exp
lrzsz-0.12.20/testsuite/lrzsz/ymodem.exp
lrzsz-0.12.20/testsuite/lrzsz/zmodem-crc16.exp
lrzsz-0.12.20/testsuite/lrzsz/zmodem-escape.exp
lrzsz-0.12.20/testsuite/lrzsz/zmodem-tcp.exp
lrzsz-0.12.20/testsuite/lrzsz/zmodem.exp
lrzsz-0.12.20/debian/
lrzsz-0.12.20/debian/changelog
lrzsz-0.12.20/debian/control
lrzsz-0.12.20/debian/copyright
lrzsz-0.12.20/debian/rules.in
[root@vmhzpmysql home]# ls
lrzsz-0.12.20 lrzsz-0.12.20.tar.gz
[root@vmhzpmysql home]# cd lrzsz-0.12.20
[root@vmhzpmysql lrzsz-0.12.20]# ls
ABOUT-NLS COMPATABILITY fastcheck.sh mkinstalldirs Specfile.in
acconfig.h config.guess INSTALL NEWS src
acinclude.m4 config.h.in install-sh po stamp-h.in
aclocal.m4 config.sub intl README systype.in
AUTHORS configure lib README.cvs testsuite
beos-runpiped.c configure.in Makefile.am README.gettext THANKS
buildrpm COPYING Makefile.in README.isdn4linux TODO
ChangeLog debian man README.tests
check.lrzsz fastcheck.beos missing rpmrc
[root@vmhzpmysql lrzsz-0.12.20]# ./configure --prefix=/usr/local/lrzsz
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
[root@vmhzpmysql lrzsz-0.12.20]# yum install gcc gcc-c++ gcc-g77
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirrors.cn99.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/2): extras/7/x86_64/primary_db | 180 kB 00:00:00
(2/2): updates/7/x86_64/primary_db | 2.4 MB 00:00:02
No package gcc-g77 available.
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-36.el7 will be installed
--> Processing Dependency: cpp = 4.8.5-36.el7 for package: gcc-4.8.5-36.el7.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-36.el7.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-36.el7.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-36.el7.x86_64
---> Package gcc-c++.x86_64 0:4.8.5-36.el7 will be installed
--> Processing Dependency: libstdc++-devel = 4.8.5-36.el7 for package: gcc-c++-4.8.5-36.el7.x86_64
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-36.el7 will be installed
---> Package glibc-devel.x86_64 0:2.17-260.el7_6.3 will be installed
--> Processing Dependency: glibc-headers = 2.17-260.el7_6.3 for package: glibc-devel-2.17-260.el7_6.3.x86_64
--> Processing Dependency: glibc = 2.17-260.el7_6.3 for package: glibc-devel-2.17-260.el7_6.3.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-260.el7_6.3.x86_64
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package libstdc++-devel.x86_64 0:4.8.5-36.el7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
--> Running transaction check
---> Package glibc.x86_64 0:2.17-260.el7 will be updated
--> Processing Dependency: glibc = 2.17-260.el7 for package: glibc-common-2.17-260.el7.x86_64
---> Package glibc.x86_64 0:2.17-260.el7_6.3 will be an update
---> Package glibc-headers.x86_64 0:2.17-260.el7_6.3 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-260.el7_6.3.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-260.el7_6.3.x86_64
--> Running transaction check
---> Package glibc-common.x86_64 0:2.17-260.el7 will be updated
---> Package glibc-common.x86_64 0:2.17-260.el7_6.3 will be an update
---> Package kernel-headers.x86_64 0:3.10.0-957.5.1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================
Package Arch Version Repository Size
==========================================================================================
Installing:
gcc x86_64 4.8.5-36.el7 base 16 M
gcc-c++ x86_64 4.8.5-36.el7 base 7.2 M
Installing for dependencies:
cpp x86_64 4.8.5-36.el7 base 5.9 M
glibc-devel x86_64 2.17-260.el7_6.3 updates 1.1 M
glibc-headers x86_64 2.17-260.el7_6.3 updates 683 k
kernel-headers x86_64 3.10.0-957.5.1.el7 updates 8.0 M
libmpc x86_64 1.0.1-3.el7 base 51 k
libstdc++-devel x86_64 4.8.5-36.el7 base 1.5 M
mpfr x86_64 3.1.1-4.el7 base 203 k
Updating for dependencies:
glibc x86_64 2.17-260.el7_6.3 updates 3.7 M
glibc-common x86_64 2.17-260.el7_6.3 updates 12 M

Transaction Summary
==========================================================================================
Install 2 Packages (+7 Dependent packages)
Upgrade ( 2 Dependent packages)

Total download size: 56 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/11): cpp-4.8.5-36.el7.x86_64.rpm | 5.9 MB 00:00:08
(2/11): glibc-devel-2.17-260.el7_6.3.x86_64.rpm | 1.1 MB 00:00:02
(3/11): glibc-headers-2.17-260.el7_6.3.x86_64.rpm | 683 kB 00:00:02
(4/11): gcc-4.8.5-36.el7.x86_64.rpm | 16 MB 00:00:28
(5/11): libmpc-1.0.1-3.el7.x86_64.rpm | 51 kB 00:00:00
(6/11): libstdc++-devel-4.8.5-36.el7.x86_64.rpm | 1.5 MB 00:00:02
(7/11): mpfr-3.1.1-4.el7.x86_64.rpm | 203 kB 00:00:00
(8/11): glibc-2.17-260.el7_6.3.x86_64.rpm | 3.7 MB 00:00:28
(9/11): kernel-headers-3.10.0-957.5.1.el7.x86_64.rpm | 8.0 MB 00:00:24
(10/11): gcc-c++-4.8.5-36.el7.x86_64.rpm | 7.2 MB 00:00:40
(11/11): glibc-common-2.17-260.el7_6.3.x86_64.rpm | 12 MB 00:00:41
------------------------------------------------------------------------------------------
Total 1.1 MB/s | 56 MB 00:00:50
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
** Found 2 pre-existing rpmdb problem(s), ‘yum check‘ output follows:
2:postfix-2.10.1-7.el7.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
2:postfix-2.10.1-7.el7.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)
Updating : glibc-common-2.17-260.el7_6.3.x86_64 1/13
Updating : glibc-2.17-260.el7_6.3.x86_64 2/13
Installing : mpfr-3.1.1-4.el7.x86_64 3/13
Installing : libmpc-1.0.1-3.el7.x86_64 4/13
Installing : cpp-4.8.5-36.el7.x86_64 5/13
Installing : libstdc++-devel-4.8.5-36.el7.x86_64 6/13
Installing : kernel-headers-3.10.0-957.5.1.el7.x86_64 7/13
Installing : glibc-headers-2.17-260.el7_6.3.x86_64 8/13
Installing : glibc-devel-2.17-260.el7_6.3.x86_64 9/13
Installing : gcc-4.8.5-36.el7.x86_64 10/13
Installing : gcc-c++-4.8.5-36.el7.x86_64 11/13
Cleanup : glibc-common-2.17-260.el7.x86_64 12/13
Cleanup : glibc-2.17-260.el7.x86_64 13/13
Verifying : glibc-devel-2.17-260.el7_6.3.x86_64 1/13
Verifying : cpp-4.8.5-36.el7.x86_64 2/13
Verifying : glibc-2.17-260.el7_6.3.x86_64 3/13
Verifying : kernel-headers-3.10.0-957.5.1.el7.x86_64 4/13
Verifying : gcc-4.8.5-36.el7.x86_64 5/13
Verifying : glibc-common-2.17-260.el7_6.3.x86_64 6/13
Verifying : mpfr-3.1.1-4.el7.x86_64 7/13
Verifying : libmpc-1.0.1-3.el7.x86_64 8/13
Verifying : gcc-c++-4.8.5-36.el7.x86_64 9/13
Verifying : glibc-headers-2.17-260.el7_6.3.x86_64 10/13
Verifying : libstdc++-devel-4.8.5-36.el7.x86_64 11/13
Verifying : glibc-common-2.17-260.el7.x86_64 12/13
Verifying : glibc-2.17-260.el7.x86_64 13/13

Installed:
gcc.x86_64 0:4.8.5-36.el7 gcc-c++.x86_64 0:4.8.5-36.el7

Dependency Installed:
cpp.x86_64 0:4.8.5-36.el7 glibc-devel.x86_64 0:2.17-260.el7_6.3
glibc-headers.x86_64 0:2.17-260.el7_6.3 kernel-headers.x86_64 0:3.10.0-957.5.1.el7
libmpc.x86_64 0:1.0.1-3.el7 libstdc++-devel.x86_64 0:4.8.5-36.el7
mpfr.x86_64 0:3.1.1-4.el7

Dependency Updated:
glibc.x86_64 0:2.17-260.el7_6.3 glibc-common.x86_64 0:2.17-260.el7_6.3

Complete!
[root@vmhzpmysql lrzsz-0.12.20]# ./configure --prefix=/usr/local/lrzsz
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking for ranlib... ranlib
checking for POSIXized ISC... no
checking for AIX... no
checking for minix/config.h... no
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking for working const... yes
checking for inline... inline
checking for syslog in -lsocket... no
checking for syslog in -lbe... no
checking for gethostbyname in -lnsl... yes
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for sys/times.h... yes
checking for termios.h... yes
checking for sys/termios.h... yes
checking for termio.h... yes
checking for sys/termio.h... no
checking for sgtty.h... yes
checking for termios.h... (cached) yes
checking for sys/termios.h... (cached) yes
checking for termio.h... (cached) yes
checking for sys/termio.h... (cached) no
checking for sgtty.h... (cached) yes
checking for sys/mman.h... yes
checking for utime.h... yes
checking for syslog.h... yes
checking for sys/syslog.h... yes
checking for sys/param.h... yes
checking for sys/select.h... yes
checking for strings.h... yes
checking for arpa/inet.h... yes
checking for size_t... yes
checking for mode_t... yes
checking for off_t... yes
checking for speed_t... yes
checking for st_rdev in struct stat... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether sys/time.h and sys/select.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for errno declaration... yes
checking whether setvbuf arguments are reversed... no
checking return type of signal handlers... void
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for gettimeofday... yes
checking for settimeofday... yes
checking for strchr... yes
checking for memcpy... yes
checking for select... yes
checking for vprintf... yes
checking for times... yes
checking for rdchk... no
checking for utime... yes
checking for syslog... yes
checking for siginterrupt... yes
checking for mkdir... yes
checking for mktime... yes
checking for strerror... yes
checking for strstr... yes
checking for strdup... yes
checking for strtoul... yes
checking for strtol... yes
checking for strpbrk... yes
checking for stpcpy... yes
checking for strftime... yes
checking for vasprintf... yes
checking for getopt_long... yes
checking for ftime... yes
checking that ftime works correctly... yes
checking for timezone variable... yes
checking for LOG_UUCP... yes
checking for argz.h... yes
checking for limits.h... (cached) yes
checking for locale.h... yes
checking for nl_types.h... yes
checking for malloc.h... yes
checking for string.h... yes
checking for unistd.h... (cached) yes
checking for values.h... yes
checking for sys/param.h... (cached) yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for strchr... (cached) yes
checking for strcasecmp... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for libintl.h... yes
checking for gettext in libc... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed... de
updating cache ./config.cache
creating ./config.status
creating Makefile
creating intl/Makefile
creating lib/Makefile
creating testsuite/Makefile
creating man/Makefile
creating po/Makefile.in
creating src/Makefile
creating debian/rules
creating Specfile
creating systype
creating src/lrzszbug
creating config.h
[root@vmhzpmysql lrzsz-0.12.20]# make
make all-recursive
make[1]: Entering directory `/home/lrzsz-0.12.20‘
Making all in lib
make[2]: Entering directory `/home/lrzsz-0.12.20/lib‘
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c long-options.c
long-options.c: In function ‘parse_long_options’:
long-options.c:65:4: warning: incompatible implicit declaration of built-in function ‘exi’ [enabled by default]
exit (0);
^
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c xstrtol.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c xstrtoul.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c error.c
rm -f libzmodem.a
ar cru libzmodem.a long-options.o xstrtol.o xstrtoul.o error.o
ranlib libzmodem.a
make[2]: Leaving directory `/home/lrzsz-0.12.20/lib‘
Making all in intl
make[2]: Entering directory `/home/lrzsz-0.12.20/intl‘
make[2]: Nothing to be done for `all‘.
make[2]: Leaving directory `/home/lrzsz-0.12.20/intl‘
Making all in src
make[2]: Entering directory `/home/lrzsz-0.12.20/src‘
gcc -DNFGVMIN -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/lrzsz/share/locale\" -I.. -I. -I../src -I../intl -I../lib -g -O2 -c lrz.c
gcc -DNFGVMIN -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/lrzsz/share/locale\" -I.. -I. -I../src -I../intl -I../lib -g -O2 -c timing.c
gcc -DNFGVMIN -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/lrzsz/share/locale\" -I.. -I. -I../src -I../intl -I../lib -g -O2 -c zperr.c
gcc -DNFGVMIN -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/lrzsz/share/locale\" -I.. -I. -I../src -I../intl -I../lib -g -O2 -c zreadline.c
gcc -DNFGVMIN -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/lrzsz/share/locale\" -I.. -I. -I../src -I../intl -I../lib -g -O2 -c crctab.c
gcc -DNFGVMIN -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/lrzsz/share/locale\" -I.. -I. -I../src -I../intl -I../lib -g -O2 -c rbsb.c
gcc -DNFGVMIN -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/lrzsz/share/locale\" -I.. -I. -I../src -I../intl -I../lib -g -O2 -c zm.c
gcc -DNFGVMIN -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/lrzsz/share/locale\" -I.. -I. -I../src -I../intl -I../lib -g -O2 -c protname.c
gcc -DNFGVMIN -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/lrzsz/share/locale\" -I.. -I. -I../src -I../intl -I../lib -g -O2 -c tcp.c
tcp.c: In function ‘tcp_server’:
tcp.c:75:33: warning: passing argument 3 of ‘getsockname’ from incompatible pointer type [enabled by default]
if (getsockname (sock, (struct sockaddr *) &t, &len)) {
^
In file included from tcp.c:26:0:
/usr/include/sys/socket.h:128:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘size_t *’
extern int getsockname (int __fd, __SOCKADDR_ARG __addr,
^
tcp.c:83:29: warning: passing argument 3 of ‘getsockname’ from incompatible pointer type [enabled by default]
getsockname (sock, (struct sockaddr *) &t, &len);
^
In file included from tcp.c:26:0:
/usr/include/sys/socket.h:128:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘size_t *’
extern int getsockname (int __fd, __SOCKADDR_ARG __addr,
^
tcp.c: In function ‘tcp_accept’:
tcp.c:103:30: warning: passing argument 3 of ‘accept’ from incompatible pointer type [enabled by default]
if ((so = accept(d, (struct sockaddr*)&s, &namelen)) < 0) {
^
In file included from tcp.c:26:0:
/usr/include/sys/socket.h:244:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘size_t *’
extern int accept (int __fd, __SOCKADDR_ARG __addr,
^
gcc -DNFGVMIN -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/lrzsz/share/locale\" -I.. -I. -I../src -I../intl -I../lib -g -O2 -c lsyslog.c
lsyslog.c: In function ‘lsyslog’:
lsyslog.c:67:4: warning: incompatible implicit declaration of built-in function ‘sprintf’ [enabled by default]
sprintf(uid_string,"#%lu",(unsigned long) uid);
^
gcc -DNFGVMIN -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/lrzsz/share/locale\" -I.. -I. -I../src -I../intl -I../lib -g -O2 -c canit.c
gcc -g -O2 -o lrz lrz.o timing.o zperr.o zreadline.o crctab.o rbsb.o zm.o protname.o tcp.o lsyslog.o canit.o ../lib/libzmodem.a -lnsl
gcc -DNFGVMIN -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/lrzsz/share/locale\" -I.. -I. -I../src -I../intl -I../lib -g -O2 -c lsz.c
gcc -g -O2 -o lsz lsz.o timing.o zperr.o zreadline.o crctab.o rbsb.o zm.o protname.o tcp.o lsyslog.o canit.o ../lib/libzmodem.a -lnsl
make[2]: Leaving directory `/home/lrzsz-0.12.20/src‘
Making all in po
make[2]: Entering directory `/home/lrzsz-0.12.20/po‘
make[2]: Leaving directory `/home/lrzsz-0.12.20/po‘
Making all in man
make[2]: Entering directory `/home/lrzsz-0.12.20/man‘
make[2]: Nothing to be done for `all‘.
make[2]: Leaving directory `/home/lrzsz-0.12.20/man‘
Making all in testsuite
make[2]: Entering directory `/home/lrzsz-0.12.20/testsuite‘
make[2]: Nothing to be done for `all‘.
make[2]: Leaving directory `/home/lrzsz-0.12.20/testsuite‘
make[1]: Leaving directory `/home/lrzsz-0.12.20‘
[root@vmhzpmysql lrzsz-0.12.20]# make install
Making install in lib
make[1]: Entering directory `/home/lrzsz-0.12.20/lib‘
make[1]: Leaving directory `/home/lrzsz-0.12.20/lib‘
Making install in intl
make[1]: Entering directory `/home/lrzsz-0.12.20/intl‘
if test "lrzsz" = "gettext" \
&& test ‘‘ = ‘intl-compat.o‘; then \
if test -r ./mkinstalldirs; then \
./mkinstalldirs /usr/local/lrzsz/lib /usr/local/lrzsz/include; \
else \
../mkinstalldirs /usr/local/lrzsz/lib /usr/local/lrzsz/include; \
fi; \
/usr/bin/install -c -m 644 intlh.inst /usr/local/lrzsz/include/libintl.h; \
/usr/bin/install -c -m 644 libintl.a /usr/local/lrzsz/lib/libintl.a; \
else \
: ; \
fi
if test "lrzsz" = "gettext"; then \
if test -r ./mkinstalldirs; then \
./mkinstalldirs /usr/local/lrzsz/share/gettext/intl; \
else \
../mkinstalldirs /usr/local/lrzsz/share/gettext/intl; \
fi; \
/usr/bin/install -c -m 644 VERSION /usr/local/lrzsz/share/gettext/intl/VERSION; \
dists="ChangeLog Makefile.in linux-msg.sed po2tbl.sed.in xopen-msg.sed gettext.h gettextP.h hash-string.h libgettext.h loadinfo.h bindtextdom.c dcgettext.c dgettext.c gettext.c finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c explodename.c intl-compat.c cat-compat.c"; \
for file in $dists; do \
/usr/bin/install -c -m 644 ./$file /usr/local/lrzsz/share/gettext/intl/$file; \
done; \
else \
: ; \
fi
make[1]: Leaving directory `/home/lrzsz-0.12.20/intl‘
Making install in src
make[1]: Entering directory `/home/lrzsz-0.12.20/src‘
/bin/sh ../mkinstalldirs /usr/local/lrzsz/bin
mkdir /usr/local/lrzsz
mkdir /usr/local/lrzsz/bin
/usr/bin/install -c lrz /usr/local/lrzsz/bin/lrz
/usr/bin/install -c lsz /usr/local/lrzsz/bin/lsz
rm -f //usr/local/lrzsz/bin/`echo lsb | sed -e ‘s,x,x,‘`
ln //usr/local/lrzsz/bin/`echo lsz |sed -e ‘s,x,x,‘` \
//usr/local/lrzsz/bin/`echo lsb |sed -e ‘s,x,x,‘`
rm -f /usr/local/lrzsz/bin/`echo lsx | sed -e ‘s,x,x,‘`
ln //usr/local/lrzsz/bin/`echo lsz |sed -e ‘s,x,x,‘` \
//usr/local/lrzsz/bin/`echo lsx |sed -e ‘s,x,x,‘`
rm -f /usr/local/lrzsz/bin/`echo lrb | sed -e ‘s,x,x,‘`
ln //usr/local/lrzsz/bin/`echo lrz |sed -e ‘s,x,x,‘` \
//usr/local/lrzsz/bin/`echo lrb |sed -e ‘s,x,x,‘`
rm -f /usr/local/lrzsz/bin/`echo lrx | sed -e ‘s,x,x,‘`
ln //usr/local/lrzsz/bin/`echo lrz |sed -e ‘s,x,x,‘` \
//usr/local/lrzsz/bin/`echo lrx |sed -e ‘s,x,x,‘`
make[1]: Leaving directory `/home/lrzsz-0.12.20/src‘
Making install in po
make[1]: Entering directory `/home/lrzsz-0.12.20/po‘
if test -r .././mkinstalldirs; then \
.././mkinstalldirs /usr/local/lrzsz/share; \
else \
../mkinstalldirs /usr/local/lrzsz/share; \
fi
mkdir /usr/local/lrzsz/share
mkdir /usr/local/lrzsz/share/locale
mkdir /usr/local/lrzsz/share/locale/de
mkdir /usr/local/lrzsz/share/locale/de/LC_MESSAGES
installing de.gmo as /usr/local/lrzsz/share/locale/de/LC_MESSAGES/lrzsz.mo
if test "lrzsz" = "gettext"; then \
if test -r .././mkinstalldirs; then \
.././mkinstalldirs /usr/local/lrzsz/share/gettext/po; \
else \
../mkinstalldirs /usr/local/lrzsz/share/gettext/po; \
fi; \
/usr/bin/install -c -m 644 ./Makefile.in.in \
/usr/local/lrzsz/share/gettext/po/Makefile.in.in; \
else \
: ; \
fi
make[1]: Leaving directory `/home/lrzsz-0.12.20/po‘
Making install in man
make[1]: Entering directory `/home/lrzsz-0.12.20/man‘
make install-man1
make[2]: Entering directory `/home/lrzsz-0.12.20/man‘
/bin/sh ../mkinstalldirs /usr/local/lrzsz/man/man1
mkdir /usr/local/lrzsz/man
mkdir /usr/local/lrzsz/man/man1
/usr/bin/install -c -m 644 ./lrz.1 /usr/local/lrzsz/man/man1/lrz.1
/usr/bin/install -c -m 644 ./lsz.1 /usr/local/lrzsz/man/man1/lsz.1
make[2]: Leaving directory `/home/lrzsz-0.12.20/man‘
make[1]: Leaving directory `/home/lrzsz-0.12.20/man‘
Making install in testsuite
make[1]: Entering directory `/home/lrzsz-0.12.20/testsuite‘
make[1]: Leaving directory `/home/lrzsz-0.12.20/testsuite‘
[root@vmhzpmysql lrzsz-0.12.20]# cd /usr/bin
[root@vmhzpmysql bin]# ls
[ nl-route-add
a2p nl-route-delete
addr2line nl-route-get
alias nl-route-list
apropos nl-rule-list
ar nl-tctree-list
arch nl-util-addr
as nm
aserver nmcli
aulast nm-online
aulastlog nmtui
ausyscall nmtui-connect
auvirt nmtui-edit
awk nmtui-hostname
base64 nohup
basename nproc
bash nroff
bashbug nsenter
bashbug-64 numfmt
bdftopcf objcopy
bdftruncate objdump
bg od
bond2team oldfind
bootctl open
busctl openssl
c++ openvt
c2ph os-prober
c89 p11-kit
c99 pango-list
cairo-sphinx pango-querymodules-64
cal pango-view
ca-legacy passwd
captoinfo paste
cat pathchk
catchsegv pchrt
catman perl
cc perl5.16.3
cd perlbug
centrino-decode perldoc
certutil perlthanks
c++filt pflags
chacl pgawk
chage pgrep
chattr pic
chcon piconv
chfn pinentry
chgrp pinentry-curses
chmem ping
chmod ping6
chown pinky
chrt pk12util
chsh pkaction
chvt pkcheck
cksum pkexec
clear pkg-config
cmp pkill
cmsutil pkla-admin-identities
col pkla-check-authorization
colcrt pkttyagent
colrm pl2pm
column pldd
comm plymouth
command pmap
coredumpctl pod2html
cp pod2man
cpio pod2text
cpp pod2usage
cpupower post-grohtml
crlutil powernow-k8-decode
crontab pr
csplit preconv
csslint-0.6 pre-grohtml
curl printenv
cut printf
cvtsudoers prlimit
date ps
db_archive psed
db_checkpoint psfaddtable
db_deadlock psfgettable
db_dump psfstriptable
db_dump185 psfxtable
db_hotbackup pstruct
db_load ptaskset
db_log_verify ptx
db_printlog pwd
db_recover pwdx
db_replicate pwmake
db_stat pwscore
db_tuner pydoc
db_upgrade python
dbus-binding-tool python2
dbus-cleanup-sockets python2.7
dbus-daemon ranlib
dbus-monitor raw
dbus-run-session read
dbus-send readelf
dbus-test-tool readlink
dbus-update-activation-environment realpath
dbus-uuidgen recode-sr-latin
db_verify rename
dd renice
deallocvt rescan-scsi-bus.sh
df reset
dgawk resizecons
diff rev
diff3 rm
dir rmail
dircolors rmail.postfix
dirname rmdir
dmesg rpcgen
dnsdomainname rpm
domainname rpm2cpio
dracut rpmdb
du rpmkeys
dumpkeys rpmquery
dwp rpmverify
echo rsyslog-recover-qi.pl
egrep runcon
eject run-parts
elfedit rvi
env rview
envsubst rvim
eqn s2p
evim scp
ex script
expand scriptreplay
expr scsi_logging_level
factor scsi_mandat
fallocate scsi_readcap
false scsi_ready
fc scsi-rescan
fc-cache scsi_satl
fc-cache-64 scsi_start
fc-cat scsi_stop
fc-conflist scsi_temperature
fc-list sdiff
fc-match secon
fc-pattern sed
fc-query seq
fc-scan setarch
fc-validate setfacl
fg setfont
fgconsole setkeycodes
fgrep setleds
file setmetamode
find setpriv
find2perl setsid
findmnt setterm
fipscheck setup-nsssysinit
fipshmac setup-nsssysinit.sh
firewall-cmd setvtrgb
firewall-offline-cmd sftp
flock sg
fmt sg_compare_and_write
fold sg_copy_results
fonttosfnt sg_dd
free sg_decode_sense
fribidi sg_emc_trespass
fusermount sg_format
g++ sg_get_config
gapplication sg_get_lba_status
gawk sg_ident
gcc sginfo
gcc-ar sg_inq
gcc-nm sg_logs
gcc-ranlib sg_luns
gcov sg_map
gdbus sg_map26
gdk-pixbuf-query-loaders-64 sgm_dd
gdk-pixbuf-thumbnailer sg_modes
gencat sg_opcodes
genl-ctrl-list sgp_dd
geoiplookup sg_persist
geoiplookup6 sg_prevent
geoipupdate sg_raw
geqn sg_rbuf
getconf sg_rdac
getent sg_read
getfacl sg_read_block_limits
getkeycodes sg_read_buffer
getopt sg_readcap
getopts sg_read_long
gettext sg_reassign
gettext.sh sg_referrals
gex sg_requests
gio sg_reset
gio-querymodules-64 sg_rmsn
glib-compile-schemas sg_rtpg
gmake sg_safte
gneqn sg_sanitize
gnroff sg_sat_identify
gpasswd sg_sat_phy_event
gpg sg_sat_set_features
gpg2 sg_scan
gpg-agent sg_senddiag
gpgconf sg_ses
gpg-connect-agent sg_start
gpg-error sg_stpg
gpgparsemail sg_sync
gpgsplit sg_test_rwbuf
gpgv sg_turs
gpgv2 sg_unmap
gpg-zip sg_verify
gpic sg_vpd
gprof sg_write_buffer
gr2fonttest sg_write_long
grep sg_write_same
groff sg_wr_mode
grops sg_xcopy
grotty sh
groups sha1sum
grub2-editenv sha224sum
grub2-file sha256sum
grub2-fstest sha384sum
grub2-glue-efi sha512sum
grub2-kbdcomp showconsolefont
grub2-menulst2cfg showkey
grub2-mkfont shred
grub2-mkimage shuf
grub2-mklayout signtool
grub2-mknetdir signver
grub2-mkpasswd-pbkdf2 size
grub2-mkrelpath skill
grub2-mkrescue slabtop
grub2-mkstandalone sleep
grub2-render-label slogin
grub2-script-check snice
grub2-syslinux2cfg soelim
gsettings sort
gsoelim sotruss
gtar splain
gtbl split
gtk-query-immodules-2.0-64 sprof
gtk-update-icon-cache sqlite3
gtroff ssh
gunzip ssh-add
gview ssh-agent
gvim ssh-copy-id
gvimdiff ssh-keygen
gvimtutor ssh-keyscan
gzexe ssltap
gzip stat
h2ph stdbuf
hdsploader strings
head strip
hexdump stty
hostid su
hostname sudo
hostnamectl sudoedit
i386 sudoreplay
iconv sum
id sync
idiag-socket-details systemctl
idn systemd-analyze
igawk systemd-ask-password
info systemd-cat
infocmp systemd-cgls
infokey systemd-cgtop
infotocap systemd-coredumpctl
install systemd-delta
ionice systemd-detect-virt
ipcalc systemd-escape
ipcmk systemd-firstboot
ipcrm systemd-hwdb
ipcs systemd-inhibit
iptables-xml systemd-loginctl
isosize systemd-machine-id-setup
jobs systemd-notify
join systemd-nspawn
journalctl systemd-path
kbdinfo systemd-run
kbd_mode systemd-stdio-bridge
kbdrate systemd-sysv-convert
kdumpctl systemd-tmpfiles
kernel-install systemd-tty-ask-password-agent
kill tabs
kmod tac
last tail
lastb tailf
lastlog tar
lchfn taskset
lchsh tbl
ld teamd
ld.bfd teamdctl
ldd teamnl
ld.gold tee
less test
lessecho testgdbm
lesskey tic
lesspipe.sh timedatectl
lexgrog timeout
link tload
linux32 tmon
linux64 toe
linux-boot-prober top
ln touch
loadkeys tput
loadunimap tr
locale tracepath
localectl tracepath6
localedef troff
logger true
login truncate
loginctl trust
logname tset
look tsort
ls tty
lsattr turbostat
lsblk tzselect
lscpu ucs2any
lsinitrd udevadm
lsipc ul
lslocks ulockmgr_server
lslogins umask
lsmem umount
lsns unalias
lsscsi uname
lua unexpand
luac unicode_start
lz4 unicode_stop
lz4c uniq
lz4cat unlink
machinectl unlz4
mailq unshare
mailq.postfix unxz
make update-ca-trust
makedb update-gtk-immodules
man update-mime-database
mandb uptime
manpath urlgrabber
mapscrn users
mcookie usleep
md5sum usx2yloader
mesg utmpdump
mixartloader uuidgen
mkdir vdir
mkfifo VGAuthService
mkfontdir vi
mkfontscale view
mkinitrd vim
mknod vimdiff
mktemp vimtutor
modutil vimx
more vlock
mount vmhgfs-fuse
mountpoint vmstat
msgattrib vm-support
msgcat vmtoolsd
msgcmp vmware-checkvm
msgcomm vmware-guestproxycerttool
msgconv vmware-hgfsclient
msgen vmware-namespace-cmd
msgexec vmware-rpctool
msgfilter vmware-toolbox-cmd
msgfmt vmware-vgauth-cmd
msggrep vmware-xferlogs
msghack vxloader
msginit w
msgmerge wait
msgunfmt wall
msguniq watch
mv watchgnupg
namei wc
ndptool wdctl
neqn wget
netstat whatis
newaliases whereis
newaliases.postfix which
newgrp whiptail
nf-ct-add who
nf-ct-list whoami
nf-exp-add write
nf-exp-delete x86_64
nf-exp-list x86_64-redhat-linux-c++
nf-log x86_64-redhat-linux-g++
nf-monitor x86_64-redhat-linux-gcc
nf-queue x86_energy_perf_policy
ngettext xargs
nice xgettext
nisdomainname xmlcatalog
nl xmllint
nl-addr-add xmlsec1
nl-addr-delete xmlwf
nl-addr-list xorg-x11-fonts-update-dirs
nl-class-add xsltproc
nl-class-delete xxd
nl-classid-lookup xz
nl-class-list xzcat
nl-cls-add xzcmp
nl-cls-delete xzdec
nl-cls-list xzdiff
nl-fib-lookup xzegrep
nl-link-enslave xzfgrep
nl-link-ifindex2name xzgrep
nl-link-list xzless
nl-link-name2ifindex xzmore
nl-link-release yes
nl-link-set ypdomainname
nl-link-stats yum
nl-list-caches zcat
nl-list-sockets zcmp
nl-monitor zdiff
nl-neigh-add zegrep
nl-neigh-delete zfgrep
nl-neigh-list zforce
nl-neightbl-list zgrep
nl-pktloc-lookup zless
nl-qdisc-add zmore
nl-qdisc-delete znew
nl-qdisc-list zsoelim
[root@vmhzpmysql bin]# ln -s /usr/local/lrzsz/bin/lrz rz
[root@vmhzpmysql bin]# ln -s /usr/local/lrzsz/bin/lsz sz
[root@vmhzpmysql bin]# rz
rz waiting to receive.
Starting zmodem transfer. Press Ctrl+C to cancel.

[root@vmhzpmysql bin]# sz
sz: need at least one file to send
Try `sz --help‘ for more information.
[root@vmhzpmysql bin]# sz
sz: need at least one file to send
Try `sz --help‘ for more information.
[root@vmhzpmysql bin]# rz
rz waiting to receive.
Starting zmodem transfer. Press Ctrl+C to cancel.

[root@vmhzpmysql bin]# sz
sz: need at least one file to send
Try `sz --help‘ for more information.
[root@vmhzpmysql bin]# cd /home
[root@vmhzpmysql home]# ls
lrzsz-0.12.20 lrzsz-0.12.20.tar.gz
[root@vmhzpmysql home]# sz lrzsz-0.12.20.tar.gz
rz
Starting zmodem transfer. Press Ctrl+C to cancel.
Transferring lrzsz-0.12.20.tar.gz...
100% 274 KB 274 KB/sec 00:00:01 0 Errors

[root@vmhzpmysql home]# rpm -pa | grep mariadb
[root@vmhzpmysql home]# rz
rz waiting to receive.
Starting zmodem transfer. Press Ctrl+C to cancel.

[root@vmhzpmysql home]# rz
rz waiting to receive.
Starting zmodem transfer. Press Ctrl+C to cancel.
Transferring mysql80-community-release-el7-2.noarch.rpm...
100% 25 KB 25 KB/sec 00:00:01 0 Errors

[root@vmhzpmysql home]# ls
lrzsz-0.12.20 lrzsz-0.12.20.tar.gz mysql80-community-release-el7-2.noarch.rpm
[root@vmhzpmysql home]# ls -ll
total 308
drwxrwxrwx. 9 406 disk 4096 Feb 23 19:10 lrzsz-0.12.20
-rw-r--r--. 1 root root 280938 Dec 31 1998 lrzsz-0.12.20.tar.gz
-rw-r--r--. 1 root root 25892 Feb 23 11:29 mysql80-community-release-el7-2.noarch.rpm
[root@vmhzpmysql home]# rm -f lrzsz-0.12.20
rm: cannot remove ‘lrzsz-0.12.20’: Is a directory
[root@vmhzpmysql home]# rm -d lrzsz-0.12.20
rm: cannot remove ‘lrzsz-0.12.20’: Directory not empty
[root@vmhzpmysql home]# rm -rf lrzsz-0.12.20
[root@vmhzpmysql home]# ls
lrzsz-0.12.20.tar.gz mysql80-community-release-el7-2.noarch.rpm
[root@vmhzpmysql home]# rm -f lrzsz-0.12.20.tar.gz
[root@vmhzpmysql home]# ls
mysql80-community-release-el7-2.noarch.rpm
[root@vmhzpmysql home]# ls -l
total 28
-rw-r--r--. 1 root root 25892 Feb 23 11:29 mysql80-community-release-el7-2.noarch.rpm
[root@vmhzpmysql home]# ls -a
. .. mysql80-community-release-el7-2.noarch.rpm
[root@vmhzpmysql home]# cd /usr/local/mysql
-bash: cd: /usr/local/mysql: No such file or directory
[root@vmhzpmysql home]# cd /usr/local
[root@vmhzpmysql local]# ls
bin etc games include lib lib64 libexec lrzsz sbin share src
[root@vmhzpmysql local]# mkdir mysql
[root@vmhzpmysql local]# ls
bin etc games include lib lib64 libexec lrzsz mysql sbin share src
[root@vmhzpmysql local]# rm -rf mysql
[root@vmhzpmysql local]# ls
bin etc games include lib lib64 libexec lrzsz sbin share src
[root@vmhzpmysql local]# cd /home
[root@vmhzpmysql home]# ls
mysql80-community-release-el7-2.noarch.rpm
[root@vmhzpmysql home]# cd /usr/local
[root@vmhzpmysql local]# ls
bin etc games include lib lib64 libexec lrzsz mysql sbin share src
[root@vmhzpmysql local]# mkdir mysql
[root@vmhzpmysql local]# ls -l
total 0
drwxr-xr-x. 2 root root 6 Apr 11 2018 bin
drwxr-xr-x. 2 root root 6 Apr 11 2018 etc
drwxr-xr-x. 2 root root 6 Apr 11 2018 games
drwxr-xr-x. 2 root root 6 Apr 11 2018 include
drwxr-xr-x. 2 root root 6 Apr 11 2018 lib
drwxr-xr-x. 2 root root 6 Apr 11 2018 lib64
drwxr-xr-x. 2 root root 6 Apr 11 2018 libexec
drwxr-xr-x. 5 root root 38 Feb 23 19:10 lrzsz
drwxr-xr-x. 2 root root 6 Feb 23 19:55 mysql
drwxr-xr-x. 2 root root 6 Apr 11 2018 sbin
drwxr-xr-x. 5 root root 46 Feb 5 15:11 share
drwxr-xr-x. 2 root root 6 Apr 11 2018 src
[root@vmhzpmysql local]# pwd
/usr/local
[root@vmhzpmysql local]# cd mysql
[root@vmhzpmysql mysql]# ls
[root@vmhzpmysql mysql]# pwd
/usr/local/mysql
[root@vmhzpmysql mysql]# mv /home//mysql80-community-release-el7-2.noarch.rpm /usr/local/[root@vmhzpmysql mysql]# mv /home/mysql80-community-release-el7-2.noarch.rpm /usr/local/m[root@vmhzpmysql mysql]# mv /home/mysql80-community-release-el7-2.noarch.rpm /usr/local/mysql//mysql80-community-release-el7-2.noarch.rpm
mv: cannot stat ‘/home/mysql80-community-release-el7-2.noarch.rpm’: No such file or directory
[root@vmhzpmysql mysql]# cd /home
[root@vmhzpmysql home]# ls
[root@vmhzpmysql home]# cd /
[root@vmhzpmysql /]# ls
bin dev home lib64 mnt proc run srv tmp var
boot etc lib media opt root sbin sys usr
[root@vmhzpmysql /]# cd home
[root@vmhzpmysql home]# ls
[root@vmhzpmysql home]# cd /usr/local/mysql
[root@vmhzpmysql mysql]# ls
[root@vmhzpmysql mysql]# rz
rz waiting to receive.
Starting zmodem transfer. Press Ctrl+C to cancel.
Transferring mysql80-community-release-el7-2.noarch.rpm...
100% 25 KB 25 KB/sec 00:00:01 0 Errors

[root@vmhzpmysql mysql]# ls
mysql80-community-release-el7-2.noarch.rpm
[root@vmhzpmysql mysql]# ls -l
total 28
-rw-r--r--. 1 root root 25892 Feb 23 11:29 mysql80-community-release-el7-2.noarch.rpm
[root@vmhzpmysql mysql]# rpm -ivh mysql57-community-release-el7-11.noarch.rpm
error: open of mysql57-community-release-el7-11.noarch.rpm failed: No such file or directory
[root@vmhzpmysql mysql]# yum list installed | grep mariadb
[root@vmhzpmysql mysql]# cd /usr/local/src/
[root@vmhzpmysql src]# ls
[root@vmhzpmysql src]# wget https://dev.mysql.com/get/mysql80-community-release-el7-2.noarch.rpm
--2019-02-23 20:01:33-- https://dev.mysql.com/get/mysql80-community-release-el7-2.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|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://repo.mysql.com//mysql80-community-release-el7-2.noarch.rpm [following]
--2019-02-23 20:01:34-- https://repo.mysql.com//mysql80-community-release-el7-2.noarch.rpm
Resolving repo.mysql.com (repo.mysql.com)... 23.35.197.183
Connecting to repo.mysql.com (repo.mysql.com)|23.35.197.183|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25892 (25K) [application/x-redhat-package-manager]
Saving to: ‘mysql80-community-release-el7-2.noarch.rpm’

100%[================================================>] 25,892 --.-K/s in 0.1s

2019-02-23 20:01:35 (178 KB/s) - ‘mysql80-community-release-el7-2.noarch.rpm’ saved [25892/25892]

[root@vmhzpmysql src]# ls -l
total 28
-rw-r--r--. 1 root root 25892 Jan 18 14:02 mysql80-community-release-el7-2.noarch.rpm
[root@vmhzpmysql src]# rpm -ivh mysql57-community-release-el7-11.noarch.rpm
error: open of mysql57-community-release-el7-11.noarch.rpm failed: No such file or directory
[root@vmhzpmysql src]# rpm -ivh mysql80-community-release-el7-2.noarch.rpm
warning: mysql80-community-release-el7-2.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:mysql80-community-release-el7-2 ################################# [100%]
[root@vmhzpmysql src]# cd /etc/yum.repos.d
[root@vmhzpmysql yum.repos.d]# ls
CentOS-Base.repo CentOS-fasttrack.repo CentOS-Vault.repo
CentOS-CR.repo CentOS-Media.repo mysql-community.repo
CentOS-Debuginfo.repo CentOS-Sources.repo mysql-community-source.repo
[root@vmhzpmysql yum.repos.d]#
[root@vmhzpmysql yum.repos.d]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base extras mysql-connectors-community mysql-tools-community
: mysql80-community updates
Cleaning up list of fastest mirrors
[root@vmhzpmysql yum.repos.d]# ls -l
total 40
-rw-r--r--. 1 root root 1664 Nov 23 21:16 CentOS-Base.repo
-rw-r--r--. 1 root root 1309 Nov 23 21:16 CentOS-CR.repo
-rw-r--r--. 1 root root 649 Nov 23 21:16 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 314 Nov 23 21:16 CentOS-fasttrack.repo
-rw-r--r--. 1 root root 630 Nov 23 21:16 CentOS-Media.repo
-rw-r--r--. 1 root root 1331 Nov 23 21:16 CentOS-Sources.repo
-rw-r--r--. 1 root root 5701 Nov 23 21:16 CentOS-Vault.repo
-rw-r--r--. 1 root root 1864 Jan 17 18:51 mysql-community.repo
-rw-r--r--. 1 root root 1885 Jan 17 18:51 mysql-community-source.repo
[root@vmhzpmysql yum.repos.d]#
[root@vmhzpmysql yum.repos.d]# yum makecache
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
mysql-connectors-community | 2.5 kB 00:00:00
mysql-tools-community | 2.5 kB 00:00:00
mysql80-community | 2.5 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/21): base/7/x86_64/group_gz | 166 kB 00:00:00
(2/21): extras/7/x86_64/filelists_db | 231 kB 00:00:01
(3/21): extras/7/x86_64/primary_db | 180 kB 00:00:03
(4/21): base/7/x86_64/other_db | 2.6 MB 00:00:05
(5/21): extras/7/x86_64/other_db | 118 kB 00:00:01
(6/21): mysql-connectors-community/x86_64/filelists_db | 45 kB 00:00:00
(7/21): mysql-connectors-community/x86_64/primary_db | 37 kB 00:00:00
(8/21): mysql-connectors-community/x86_64/other_db | 9.3 kB 00:00:00
(9/21): mysql-tools-community/x86_64/primary_db | 54 kB 00:00:00
(10/21): mysql-tools-community/x86_64/other_db | 13 kB 00:00:00
(11/21): mysql-tools-community/x86_64/filelists_db | 153 kB 00:00:00
(12/21): extras/7/x86_64/prestodelta | 47 kB 00:00:07
(13/21): mysql80-community/x86_64/primary_db | 53 kB 00:00:00
(14/21): mysql80-community/x86_64/filelists_db | 328 kB 00:00:01
(15/21): mysql80-community/x86_64/other_db | 15 kB 00:00:00
(16/21): base/7/x86_64/primary_db | 6.0 MB 00:00:13
(17/21): updates/7/x86_64/other_db | 340 kB 00:00:00
(18/21): updates/7/x86_64/filelists_db | 1.9 MB 00:00:08
(19/21): updates/7/x86_64/prestodelta | 341 kB 00:00:08
(20/21): base/7/x86_64/filelists_db | 7.1 MB 00:00:19
(21/21): updates/7/x86_64/primary_db | 2.4 MB 00:00:11
Metadata Cache Created
[root@vmhzpmysql yum.repos.d]# ls -l
total 40
-rw-r--r--. 1 root root 1664 Nov 23 21:16 CentOS-Base.repo
-rw-r--r--. 1 root root 1309 Nov 23 21:16 CentOS-CR.repo
-rw-r--r--. 1 root root 649 Nov 23 21:16 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 314 Nov 23 21:16 CentOS-fasttrack.repo
-rw-r--r--. 1 root root 630 Nov 23 21:16 CentOS-Media.repo
-rw-r--r--. 1 root root 1331 Nov 23 21:16 CentOS-Sources.repo
-rw-r--r--. 1 root root 5701 Nov 23 21:16 CentOS-Vault.repo
-rw-r--r--. 1 root root 1864 Jan 17 18:51 mysql-community.repo
-rw-r--r--. 1 root root 1885 Jan 17 18:51 mysql-community-source.repo
[root@vmhzpmysql yum.repos.d]# yum repolist all | grep mysql
mysql-cluster-7.5-community/x86_64 MySQL Cluster 7.5 Community disabled
mysql-cluster-7.5-community-source MySQL Cluster 7.5 Community - disabled
mysql-cluster-7.6-community/x86_64 MySQL Cluster 7.6 Community disabled
mysql-cluster-7.6-community-source MySQL Cluster 7.6 Community - disabled
mysql-connectors-community/x86_64 MySQL Connectors Community enabled: 95
mysql-connectors-community-source MySQL Connectors Community - disabled
mysql-tools-community/x86_64 MySQL Tools Community enabled: 84
mysql-tools-community-source MySQL Tools Community - Sourc disabled
mysql-tools-preview/x86_64 MySQL Tools Preview disabled
mysql-tools-preview-source MySQL Tools Preview - Source disabled
mysql55-community/x86_64 MySQL 5.5 Community Server disabled
mysql55-community-source MySQL 5.5 Community Server - disabled
mysql56-community/x86_64 MySQL 5.6 Community Server disabled
mysql56-community-source MySQL 5.6 Community Server - disabled
mysql57-community/x86_64 MySQL 5.7 Community Server disabled
mysql57-community-source MySQL 5.7 Community Server - disabled
mysql80-community/x86_64 MySQL 8.0 Community Server enabled: 82
mysql80-community-source MySQL 8.0 Community Server - disabled
[root@vmhzpmysql yum.repos.d]#
[root@vmhzpmysql yum.repos.d]# yum-config-manager --disable mysql80-community
-bash: yum-config-manager: command not found
[root@vmhzpmysql yum.repos.d]#
[root@vmhzpmysql yum.repos.d]# yum -config -manager --disable mysql80-community
CRITICAL:yum.cli:Config error: Error accessing file for config file:///etc/yum.repos.d/onfig
[root@vmhzpmysql yum.repos.d]# yum -y install yum-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-50.el7 will be installed
--> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-50.el7.noarch
--> Processing Dependency: libxml2-python for package: yum-utils-1.1.31-50.el7.noarch
--> Running transaction check
---> Package libxml2-python.x86_64 0:2.9.1-6.el7_2.3 will be installed
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed
--> Processing Dependency: python-chardet for package: python-kitchen-1.1.1-5.el7.noarch
--> Running transaction check
---> Package python-chardet.noarch 0:2.2.1-1.el7_1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================
Package Arch Version Repository Size
==========================================================================================
Installing:
yum-utils noarch 1.1.31-50.el7 base 121 k
Installing for dependencies:
libxml2-python x86_64 2.9.1-6.el7_2.3 base 247 k
python-chardet noarch 2.2.1-1.el7_1 base 227 k
python-kitchen noarch 1.1.1-5.el7 base 267 k

Transaction Summary
==========================================================================================
Install 1 Package (+3 Dependent packages)

Total download size: 861 k
Installed size: 4.3 M
Downloading packages:
(1/4): python-chardet-2.2.1-1.el7_1.noarch.rpm | 227 kB 00:00:00
(2/4): yum-utils-1.1.31-50.el7.noarch.rpm | 121 kB 00:00:00
(3/4): python-kitchen-1.1.1-5.el7.noarch.rpm | 267 kB 00:00:00
(4/4): libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm | 247 kB 00:00:00
------------------------------------------------------------------------------------------
Total 840 kB/s | 861 kB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
** Found 2 pre-existing rpmdb problem(s), ‘yum check‘ output follows:
2:postfix-2.10.1-7.el7.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
2:postfix-2.10.1-7.el7.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)
Installing : python-chardet-2.2.1-1.el7_1.noarch 1/4
Installing : python-kitchen-1.1.1-5.el7.noarch 2/4
Installing : libxml2-python-2.9.1-6.el7_2.3.x86_64 3/4
Installing : yum-utils-1.1.31-50.el7.noarch 4/4
Verifying : libxml2-python-2.9.1-6.el7_2.3.x86_64 1/4
Verifying : python-kitchen-1.1.1-5.el7.noarch 2/4
Verifying : yum-utils-1.1.31-50.el7.noarch 3/4
Verifying : python-chardet-2.2.1-1.el7_1.noarch 4/4

Installed:
yum-utils.noarch 0:1.1.31-50.el7

Dependency Installed:
libxml2-python.x86_64 0:2.9.1-6.el7_2.3 python-chardet.noarch 0:2.2.1-1.el7_1
python-kitchen.noarch 0:1.1.1-5.el7

Complete!
[root@vmhzpmysql yum.repos.d]#
[root@vmhzpmysql yum.repos.d]# yum-config-manager --disable mysql80-community
Loaded plugins: fastestmirror
================================ repo: mysql80-community =================================
[mysql80-community]
async = True
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/7
baseurl = http://repo.mysql.com/yum/mysql-8.0-community/el/7/x86_64/
cache = 0
cachedir = /var/cache/yum/x86_64/7/mysql80-community
check_config_file_age = True
compare_providers_priority = 80
cost = 1000
deltarpm_metadata_percentage = 100
deltarpm_percentage =
enabled = 0
enablegroups = True
exclude =
failovermethod = priority
ftp_disable_epsv = False
gpgcadir = /var/lib/yum/repos/x86_64/7/mysql80-community/gpgcadir
gpgcakey =
gpgcheck = True
gpgdir = /var/lib/yum/repos/x86_64/7/mysql80-community/gpgdir
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
hdrdir = /var/cache/yum/x86_64/7/mysql80-community/headers
http_caching = all
includepkgs =
ip_resolve =
keepalive = True
keepcache = False
mddownloadpolicy = sqlite
mdpolicy = group:small
mediaid =
metadata_expire = 21600
metadata_expire_filter = read-only:present
metalink =
minrate = 0
mirrorlist =
mirrorlist_expire = 86400
name = MySQL 8.0 Community Server
old_base_cache_dir =
password =
persistdir = /var/lib/yum/repos/x86_64/7/mysql80-community
pkgdir = /var/cache/yum/x86_64/7/mysql80-community/packages
proxy = False
proxy_dict =
proxy_password =
proxy_username =
repo_gpgcheck = False
retries = 10
skip_if_unavailable = False
ssl_check_cert_permissions = True
sslcacert =
sslclientcert =
sslclientkey =
sslverify = True
throttle = 0
timeout = 30.0
ui_id = mysql80-community/x86_64
ui_repoid_vars = releasever,
basearch
username =

[root@vmhzpmysql yum.repos.d]#
[root@vmhzpmysql yum.repos.d]# yum-config-manager --enable mysql57-community
Loaded plugins: fastestmirror
================================ repo: mysql57-community =================================
[mysql57-community]
async = True
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/7
baseurl = http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/
cache = 0
cachedir = /var/cache/yum/x86_64/7/mysql57-community
check_config_file_age = True
compare_providers_priority = 80
cost = 1000
deltarpm_metadata_percentage = 100
deltarpm_percentage =
enabled = 1
enablegroups = True
exclude =
failovermethod = priority
ftp_disable_epsv = False
gpgcadir = /var/lib/yum/repos/x86_64/7/mysql57-community/gpgcadir
gpgcakey =
gpgcheck = True
gpgdir = /var/lib/yum/repos/x86_64/7/mysql57-community/gpgdir
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
hdrdir = /var/cache/yum/x86_64/7/mysql57-community/headers
http_caching = all
includepkgs =
ip_resolve =
keepalive = True
keepcache = False
mddownloadpolicy = sqlite
mdpolicy = group:small
mediaid =
metadata_expire = 21600
metadata_expire_filter = read-only:present
metalink =
minrate = 0
mirrorlist =
mirrorlist_expire = 86400
name = MySQL 5.7 Community Server
old_base_cache_dir =
password =
persistdir = /var/lib/yum/repos/x86_64/7/mysql57-community
pkgdir = /var/cache/yum/x86_64/7/mysql57-community/packages
proxy = False
proxy_dict =
proxy_password =
proxy_username =
repo_gpgcheck = False
retries = 10
skip_if_unavailable = False
ssl_check_cert_permissions = True
sslcacert =
sslclientcert =
sslclientkey =
sslverify = True
throttle = 0
timeout = 30.0
ui_id = mysql57-community/x86_64
ui_repoid_vars = releasever,
basearch
username =

[root@vmhzpmysql yum.repos.d]# cat /etc/yum.repos.d/mysql-community.repo
# 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

# Enable to use MySQL 5.7
[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

[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

[mysql-tools-preview]
name=MySQL Tools Preview
baseurl=http://repo.mysql.com/yum/mysql-tools-preview/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

[mysql-cluster-7.5-community]
name=MySQL Cluster 7.5 Community
baseurl=http://repo.mysql.com/yum/mysql-cluster-7.5-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

[mysql-cluster-7.6-community]
name=MySQL Cluster 7.6 Community
baseurl=http://repo.mysql.com/yum/mysql-cluster-7.6-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[root@vmhzpmysql yum.repos.d]# vim /etc/yum.repos.d/mysql-community.repo
# 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

# Enable to use MySQL 5.7
[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
# Enable to use MySQL 5.5
# Enable to use MySQL 5.6
# Enable to use MySQL 5.7
gpgcheck=1
"mysql-community.repo" 65L, 1864C written
[root@vmhzpmysql yum.repos.d]# cat /etc/yum.repos.d/mysql-community.repo
# 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

# Enable to use MySQL 5.7
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
enabled=0
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=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

[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

[mysql-tools-preview]
name=MySQL Tools Preview
baseurl=http://repo.mysql.com/yum/mysql-tools-preview/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

[mysql-cluster-7.5-community]
name=MySQL Cluster 7.5 Community
baseurl=http://repo.mysql.com/yum/mysql-cluster-7.5-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

[mysql-cluster-7.6-community]
name=MySQL Cluster 7.6 Community
baseurl=http://repo.mysql.com/yum/mysql-cluster-7.6-community/el/7/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[root@vmhzpmysql yum.repos.d]# yum install mysql-community-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
mysql-connectors-community | 2.5 kB 00:00:00
mysql-tools-community | 2.5 kB 00:00:00
mysql80-community | 2.5 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:8.0.15-1.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 8.0.15-1.el7 for package: mysql-community-server-8.0.15-1.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 8.0.0 for package: mysql-community-server-8.0.15-1.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:8.0.15-1.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 8.0.0 for package: mysql-community-client-8.0.15-1.el7.x86_64
---> Package mysql-community-common.x86_64 0:8.0.15-1.el7 will be installed
--> Running transaction check
---> Package mysql-community-libs.x86_64 0:8.0.15-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================
Package Arch Version Repository Size
==========================================================================================
Installing:
mysql-community-server x86_64 8.0.15-1.el7 mysql80-community 360 M
Installing for dependencies:
mysql-community-client x86_64 8.0.15-1.el7 mysql80-community 25 M
mysql-community-common x86_64 8.0.15-1.el7 mysql80-community 566 k
mysql-community-libs x86_64 8.0.15-1.el7 mysql80-community 2.2 M

Transaction Summary
==========================================================================================
Install 1 Package (+3 Dependent packages)

Total download size: 389 M
Installed size: 1.7 G
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/mysql80-community/packages/mysql-community-common-8.0.15-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Public key for mysql-community-common-8.0.15-1.el7.x86_64.rpm is not installed
(1/4): mysql-community-common-8.0.15-1.el7.x86_64.rpm | 566 kB 00:00:01
(2/4): mysql-community-libs-8.0.15-1.el7.x86_64.rpm | 2.2 MB 00:00:04
(3/4): mysql-community-client-8.0.15-1.el7.x86_64.rpm | 25 MB 00:00:46
(4/4): mysql-community-server-8.0.15-1.el7.x86_64.rpm | 360 MB 00:05:46
------------------------------------------------------------------------------------------
Total 1.1 MB/s | 389 MB 00:05:52
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Importing GPG key 0x5072E1F5:
Userid : "MySQL Release Engineering <mysql-build@oss.oracle.com>"
Fingerprint: a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5
Package : mysql80-community-release-el7-2.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : mysql-community-common-8.0.15-1.el7.x86_64 1/4
Installing : mysql-community-libs-8.0.15-1.el7.x86_64 2/4
Installing : mysql-community-client-8.0.15-1.el7.x86_64 3/4
Installing : mysql-community-server-8.0.15-1.el7.x86_64 4/4
Verifying : mysql-community-client-8.0.15-1.el7.x86_64 1/4
Verifying : mysql-community-libs-8.0.15-1.el7.x86_64 2/4
Verifying : mysql-community-common-8.0.15-1.el7.x86_64 3/4
Verifying : mysql-community-server-8.0.15-1.el7.x86_64 4/4

Installed:
mysql-community-server.x86_64 0:8.0.15-1.el7

Dependency Installed:
mysql-community-client.x86_64 0:8.0.15-1.el7
mysql-community-common.x86_64 0:8.0.15-1.el7
mysql-community-libs.x86_64 0:8.0.15-1.el7

Complete!
[root@vmhzpmysql yum.repos.d]# systemctl start mysqld.service
[root@vmhzpmysql yum.repos.d]# ps -ef | grep mysqld
mysql 30194 1 0 20:21 ? 00:00:01 /usr/sbin/mysqld
root 30369 22837 0 20:23 pts/0 00:00:00 grep --color=auto mysqld
[root@vmhzpmysql yum.repos.d]# systemctl status mysqld.service
● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2019-02-23 20:21:01 CST; 3min 54s ago
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Process: 30117 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
Main PID: 30194 (mysqld)
Status: "SERVER_OPERATING"
CGroup: /system.slice/mysqld.service
└─30194 /usr/sbin/mysqld

Feb 23 20:20:55 vmhzpmysql systemd[1]: Starting MySQL Server...
Feb 23 20:21:01 vmhzpmysql systemd[1]: Started MySQL Server.
[root@vmhzpmysql yum.repos.d]# systemctl enable mysqld.service
[root@vmhzpmysql yum.repos.d]# cat /var/log/mysqld.log | grep password
2019-02-23T12:20:58.527532Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: l(jzSxe&3yNV
[root@vmhzpmysql yum.repos.d]# cd /
[root@vmhzpmysql /]# mysql -u root -p
Enter password:

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 8.0.15

Copyright (c) 2000, 2019, 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> ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘123456‘;
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
mysql> ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘1qaz!QAZ‘;
Query OK, 0 rows affected (0.01 sec)

mysql> exit
Bye
[root@vmhzpmysql log]#
[root@vmhzpmysql log]# systemctl stop firewalld.service
[root@vmhzpmysql log]# systemctl status firewalld.service
● 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)
[root@vmhzpmysql log]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 8.0.15 MySQL Community Server - GPL

Copyright (c) 2000, 2019, 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> exit
Bye
[root@vmhzpmysql log]#
[root@vmhzpmysql log]# systemctl enable mysqld.service

centos7.6安装MySQL8.0的操作记录

原文:https://www.cnblogs.com/tiantom/p/10422494.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!