Instalação do MySQL 8.0 no OEL 7

Instale a configuração do repositório do MySQL. Não ligue para o 5.7 no nome, resolvemos isto depois.

[root@localhost ~]# yum -y install https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
Loaded plugins: ulninfo
mysql57-community-release-el7-11.noarch.rpm                                                                                                      |  25 kB  00:00:00
Examining /var/tmp/yum-root-It8tTj/mysql57-community-release-el7-11.noarch.rpm: mysql57-community-release-el7-11.noarch
Marking /var/tmp/yum-root-It8tTj/mysql57-community-release-el7-11.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package mysql57-community-release.noarch 0:el7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
 Package                                       Arch                       Version                    Repository                                                    Size
========================================================================================================================================================================
Installing:
 mysql57-community-release                     noarch                     el7-11                     /mysql57-community-release-el7-11.noarch                      31 k

Transaction Summary
========================================================================================================================================================================
Install  1 Package

Total size: 31 k
Installed size: 31 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : mysql57-community-release-el7-11.noarch                                                                                                              1/1
  Verifying  : mysql57-community-release-el7-11.noarch                                                                                                              1/1

Installed:
  mysql57-community-release.noarch 0:el7-11

Complete!
[root@localhost ~]#

Agora desabilite (enabled=0) o MySQL 5.7 e habilite (enabled=1) o 8.0 no arquivo de configuração do repostório.

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

E agora, é instalar.

[root@localhost ~]# yum -y install mysql-community-server
Loaded plugins: ulninfo
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:8.0.3-0.1.rc.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 8.0.3-0.1.rc.el7 for package: mysql-community-server-8.0.3-0.1.rc.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 8.0.0 for package: mysql-community-server-8.0.3-0.1.rc.el7.x86_64
--> Processing Dependency: perl(strict) for package: mysql-community-server-8.0.3-0.1.rc.el7.x86_64
--> Processing Dependency: perl(Getopt::Long) for package: mysql-community-server-8.0.3-0.1.rc.el7.x86_64
--> Processing Dependency: net-tools for package: mysql-community-server-8.0.3-0.1.rc.el7.x86_64
--> Processing Dependency: /usr/bin/perl for package: mysql-community-server-8.0.3-0.1.rc.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:8.0.3-0.1.rc.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 8.0.0 for package: mysql-community-client-8.0.3-0.1.rc.el7.x86_64
---> Package mysql-community-common.x86_64 0:5.7.16-1.el7 will be updated
---> Package mysql-community-common.x86_64 0:8.0.3-0.1.rc.el7 will be an update
---> Package net-tools.x86_64 0:2.0-0.22.20131004git.el7 will be installed
---> Package perl.x86_64 4:5.16.3-292.el7 will be installed
--> Processing Dependency: perl-libs = 4:5.16.3-292.el7 for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Scalar::Util) >= 1.10 for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl-libs for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Carp) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(threads) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Scalar::Util) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Cwd) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(File::Spec::Unix) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(File::Path) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(File::Spec::Functions) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(threads::shared) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(File::Spec) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Exporter) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(constant) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl-macros for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Time::HiRes) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: perl(File::Temp) for package: 4:perl-5.16.3-292.el7.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.16.3-292.el7.x86_64
---> Package perl-Getopt-Long.noarch 0:2.40-2.el7 will be installed
--> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Long-2.40-2.el7.noarch
--> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long-2.40-2.el7.noarch
--> Running transaction check
---> Package mysql-community-libs.x86_64 0:5.7.16-1.el7 will be updated
---> Package mysql-community-libs.x86_64 0:8.0.3-0.1.rc.el7 will be an update
---> Package perl-Carp.noarch 0:1.26-244.el7 will be installed
---> Package perl-Exporter.noarch 0:5.68-3.el7 will be installed
---> Package perl-File-Path.noarch 0:2.09-2.el7 will be installed
---> Package perl-File-Temp.noarch 0:0.23.01-3.el7 will be installed
---> Package perl-Filter.x86_64 0:1.49-3.el7 will be installed
---> Package perl-PathTools.x86_64 0:3.40-5.el7 will be installed
---> Package perl-Pod-Simple.noarch 1:3.28-4.el7 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
--> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
---> Package perl-Pod-Usage.noarch 0:1.63-3.el7 will be installed
--> Processing Dependency: perl(Pod::Text) >= 3.15 for package: perl-Pod-Usage-1.63-3.el7.noarch
--> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.el7.noarch
---> Package perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 will be installed
---> Package perl-Socket.x86_64 0:2.010-4.el7 will be installed
---> Package perl-Storable.x86_64 0:2.45-3.el7 will be installed
---> Package perl-Text-ParseWords.noarch 0:3.29-4.el7 will be installed
---> Package perl-Time-HiRes.x86_64 4:1.9725-3.el7 will be installed
---> Package perl-Time-Local.noarch 0:1.2300-2.el7 will be installed
---> Package perl-constant.noarch 0:1.27-2.el7 will be installed
---> Package perl-libs.x86_64 4:5.16.3-292.el7 will be installed
---> Package perl-macros.x86_64 4:5.16.3-292.el7 will be installed
---> Package perl-threads.x86_64 0:1.87-4.el7 will be installed
---> Package perl-threads-shared.x86_64 0:1.43-6.el7 will be installed
--> Running transaction check
---> Package perl-Encode.x86_64 0:2.51-7.el7 will be installed
---> Package perl-Pod-Escapes.noarch 1:1.04-292.el7 will be installed
---> Package perl-Pod-Perldoc.noarch 0:3.20-4.el7 will be installed
--> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
--> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
---> Package perl-podlators.noarch 0:2.5.1-3.el7 will be installed
--> Running transaction check
---> Package perl-HTTP-Tiny.noarch 0:0.033-3.el7 will be installed
---> Package perl-parent.noarch 1:0.225-244.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
 Package                                      Arch                         Version                                        Repository                               Size
========================================================================================================================================================================
Installing:
 mysql-community-server                       x86_64                       8.0.3-0.1.rc.el7                               mysql80-community                       346 M
Installing for dependencies:
 mysql-community-client                       x86_64                       8.0.3-0.1.rc.el7                               mysql80-community                        35 M
 net-tools                                    x86_64                       2.0-0.22.20131004git.el7                       ol7_latest                              305 k
 perl                                         x86_64                       4:5.16.3-292.el7                               ol7_latest                              8.0 M
 perl-Carp                                    noarch                       1.26-244.el7                                   ol7_latest                               19 k
 perl-Encode                                  x86_64                       2.51-7.el7                                     ol7_latest                              1.5 M
 perl-Exporter                                noarch                       5.68-3.el7                                     ol7_latest                               28 k
 perl-File-Path                               noarch                       2.09-2.el7                                     ol7_latest                               26 k
 perl-File-Temp                               noarch                       0.23.01-3.el7                                  ol7_latest                               56 k
 perl-Filter                                  x86_64                       1.49-3.el7                                     ol7_latest                               76 k
 perl-Getopt-Long                             noarch                       2.40-2.el7                                     ol7_latest                               55 k
 perl-HTTP-Tiny                               noarch                       0.033-3.el7                                    ol7_latest                               38 k
 perl-PathTools                               x86_64                       3.40-5.el7                                     ol7_latest                               82 k
 perl-Pod-Escapes                             noarch                       1:1.04-292.el7                                 ol7_latest                               50 k
 perl-Pod-Perldoc                             noarch                       3.20-4.el7                                     ol7_latest                               86 k
 perl-Pod-Simple                              noarch                       1:3.28-4.el7                                   ol7_latest                              216 k
 perl-Pod-Usage                               noarch                       1.63-3.el7                                     ol7_latest                               26 k
 perl-Scalar-List-Utils                       x86_64                       1.27-248.el7                                   ol7_latest                               35 k
 perl-Socket                                  x86_64                       2.010-4.el7                                    ol7_latest                               48 k
 perl-Storable                                x86_64                       2.45-3.el7                                     ol7_latest                               76 k
 perl-Text-ParseWords                         noarch                       3.29-4.el7                                     ol7_latest                               13 k
 perl-Time-HiRes                              x86_64                       4:1.9725-3.el7                                 ol7_latest                               44 k
 perl-Time-Local                              noarch                       1.2300-2.el7                                   ol7_latest                               24 k
 perl-constant                                noarch                       1.27-2.el7                                     ol7_latest                               18 k
 perl-libs                                    x86_64                       4:5.16.3-292.el7                               ol7_latest                              687 k
 perl-macros                                  x86_64                       4:5.16.3-292.el7                               ol7_latest                               43 k
 perl-parent                                  noarch                       1:0.225-244.el7                                ol7_latest                               12 k
 perl-podlators                               noarch                       2.5.1-3.el7                                    ol7_latest                              111 k
 perl-threads                                 x86_64                       1.87-4.el7                                     ol7_latest                               48 k
 perl-threads-shared                          x86_64                       1.43-6.el7                                     ol7_latest                               38 k
Updating for dependencies:
 mysql-community-common                       x86_64                       8.0.3-0.1.rc.el7                               mysql80-community                       373 k
 mysql-community-libs                         x86_64                       8.0.3-0.1.rc.el7                               mysql80-community                       3.1 M

Transaction Summary
========================================================================================================================================================================
Install  1 Package  (+29 Dependent packages)
Upgrade             (  2 Dependent packages)

Total download size: 397 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7Server/mysql80-community/packages/mysql-community-common-8.0.3-0.1.rc.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Public key for mysql-community-common-8.0.3-0.1.rc.el7.x86_64.rpm is not installed
(1/32): mysql-community-common-8.0.3-0.1.rc.el7.x86_64.rpm                                                                                       | 373 kB  00:00:08
(2/32): mysql-community-libs-8.0.3-0.1.rc.el7.x86_64.rpm                                                                                         | 3.1 MB  00:00:03
(3/32): net-tools-2.0-0.22.20131004git.el7.x86_64.rpm                                                                                            | 305 kB  00:00:09
(4/32): perl-Carp-1.26-244.el7.noarch.rpm                                                                                                        |  19 kB  00:00:00
(5/32): perl-Encode-2.51-7.el7.x86_64.rpm                                                                                                        | 1.5 MB  00:00:02
(6/32): perl-Exporter-5.68-3.el7.noarch.rpm                                                                                                      |  28 kB  00:00:00
(7/32): perl-File-Path-2.09-2.el7.noarch.rpm                                                                                                     |  26 kB  00:00:00
(8/32): perl-File-Temp-0.23.01-3.el7.noarch.rpm                                                                                                  |  56 kB  00:00:00
(9/32): perl-Filter-1.49-3.el7.x86_64.rpm                                                                                                        |  76 kB  00:00:00
(10/32): perl-Getopt-Long-2.40-2.el7.noarch.rpm                                                                                                  |  55 kB  00:00:00
(11/32): perl-HTTP-Tiny-0.033-3.el7.noarch.rpm                                                                                                   |  38 kB  00:00:00
(12/32): perl-PathTools-3.40-5.el7.x86_64.rpm                                                                                                    |  82 kB  00:00:00
(13/32): perl-Pod-Escapes-1.04-292.el7.noarch.rpm                                                                                                |  50 kB  00:00:00
(14/32): perl-Pod-Perldoc-3.20-4.el7.noarch.rpm                                                                                                  |  86 kB  00:00:00
(15/32): perl-Pod-Simple-3.28-4.el7.noarch.rpm                                                                                                   | 216 kB  00:00:00
(16/32): perl-Pod-Usage-1.63-3.el7.noarch.rpm                                                                                                    |  26 kB  00:00:00
(17/32): perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm                                                                                          |  35 kB  00:00:00
(18/32): perl-Socket-2.010-4.el7.x86_64.rpm                                                                                                      |  48 kB  00:00:00
(19/32): perl-Storable-2.45-3.el7.x86_64.rpm                                                                                                     |  76 kB  00:00:00
(20/32): perl-Text-ParseWords-3.29-4.el7.noarch.rpm                                                                                              |  13 kB  00:00:00
(21/32): perl-Time-HiRes-1.9725-3.el7.x86_64.rpm                                                                                                 |  44 kB  00:00:00
(22/32): perl-Time-Local-1.2300-2.el7.noarch.rpm                                                                                                 |  24 kB  00:00:00
(23/32): perl-constant-1.27-2.el7.noarch.rpm                                                                                                     |  18 kB  00:00:00
(24/32): perl-libs-5.16.3-292.el7.x86_64.rpm                                                                                                     | 687 kB  00:00:01
(25/32): mysql-community-client-8.0.3-0.1.rc.el7.x86_64.rpm                                                                                      |  35 MB  00:00:30
(26/32): perl-macros-5.16.3-292.el7.x86_64.rpm                                                                                                   |  43 kB  00:00:00
(27/32): perl-parent-0.225-244.el7.noarch.rpm                                                                                                    |  12 kB  00:00:00
(28/32): perl-podlators-2.5.1-3.el7.noarch.rpm                                                                                                   | 111 kB  00:00:00
(29/32): perl-threads-1.87-4.el7.x86_64.rpm                                                                                                      |  48 kB  00:00:00
(30/32): perl-threads-shared-1.43-6.el7.x86_64.rpm                                                                                               |  38 kB  00:00:00
(31/32): perl-5.16.3-292.el7.x86_64.rpm                                                                                                          | 8.0 MB  00:00:22
(32/32): mysql-community-server-8.0.3-0.1.rc.el7.x86_64.rpm                                                                                      | 346 MB  00:14:49
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                   451 kB/s | 397 MB  00:15:01
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-11.noarch (installed)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : mysql-community-common-8.0.3-0.1.rc.el7.x86_64                                                                                                      1/34
  Updating   : mysql-community-libs-8.0.3-0.1.rc.el7.x86_64                                                                                                        2/34
  Installing : mysql-community-client-8.0.3-0.1.rc.el7.x86_64                                                                                                      3/34
  Installing : 1:perl-parent-0.225-244.el7.noarch                                                                                                                  4/34
  Installing : perl-HTTP-Tiny-0.033-3.el7.noarch                                                                                                                   5/34
  Installing : perl-podlators-2.5.1-3.el7.noarch                                                                                                                   6/34
  Installing : perl-Pod-Perldoc-3.20-4.el7.noarch                                                                                                                  7/34
  Installing : 1:perl-Pod-Escapes-1.04-292.el7.noarch                                                                                                              8/34
  Installing : perl-Text-ParseWords-3.29-4.el7.noarch                                                                                                              9/34
  Installing : perl-Encode-2.51-7.el7.x86_64                                                                                                                      10/34
  Installing : perl-Pod-Usage-1.63-3.el7.noarch                                                                                                                   11/34
  Installing : 4:perl-macros-5.16.3-292.el7.x86_64                                                                                                                12/34
  Installing : 4:perl-libs-5.16.3-292.el7.x86_64                                                                                                                  13/34
  Installing : perl-Storable-2.45-3.el7.x86_64                                                                                                                    14/34
  Installing : perl-Exporter-5.68-3.el7.noarch                                                                                                                    15/34
  Installing : perl-constant-1.27-2.el7.noarch                                                                                                                    16/34
  Installing : perl-Time-Local-1.2300-2.el7.noarch                                                                                                                17/34
  Installing : perl-Socket-2.010-4.el7.x86_64                                                                                                                     18/34
  Installing : perl-Carp-1.26-244.el7.noarch                                                                                                                      19/34
  Installing : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                                                                                                              20/34
  Installing : perl-PathTools-3.40-5.el7.x86_64                                                                                                                   21/34
  Installing : perl-Scalar-List-Utils-1.27-248.el7.x86_64                                                                                                         22/34
  Installing : perl-File-Temp-0.23.01-3.el7.noarch                                                                                                                23/34
  Installing : perl-File-Path-2.09-2.el7.noarch                                                                                                                   24/34
  Installing : perl-threads-shared-1.43-6.el7.x86_64                                                                                                              25/34
  Installing : perl-threads-1.87-4.el7.x86_64                                                                                                                     26/34
  Installing : perl-Filter-1.49-3.el7.x86_64                                                                                                                      27/34
  Installing : 1:perl-Pod-Simple-3.28-4.el7.noarch                                                                                                                28/34
  Installing : perl-Getopt-Long-2.40-2.el7.noarch                                                                                                                 29/34
  Installing : 4:perl-5.16.3-292.el7.x86_64                                                                                                                       30/34
  Installing : net-tools-2.0-0.22.20131004git.el7.x86_64                                                                                                          31/34
  Installing : mysql-community-server-8.0.3-0.1.rc.el7.x86_64                                                                                                     32/34
  Cleanup    : mysql-community-libs-5.7.16-1.el7.x86_64                                                                                                           33/34
  Cleanup    : mysql-community-common-5.7.16-1.el7.x86_64                                                                                                         34/34
  Verifying  : perl-HTTP-Tiny-0.033-3.el7.noarch                                                                                                                   1/34
  Verifying  : mysql-community-server-8.0.3-0.1.rc.el7.x86_64                                                                                                      2/34
  Verifying  : net-tools-2.0-0.22.20131004git.el7.x86_64                                                                                                           3/34
  Verifying  : perl-threads-shared-1.43-6.el7.x86_64                                                                                                               4/34
  Verifying  : perl-Storable-2.45-3.el7.x86_64                                                                                                                     5/34
  Verifying  : perl-Exporter-5.68-3.el7.noarch                                                                                                                     6/34
  Verifying  : perl-constant-1.27-2.el7.noarch                                                                                                                     7/34
  Verifying  : perl-PathTools-3.40-5.el7.x86_64                                                                                                                    8/34
  Verifying  : 4:perl-macros-5.16.3-292.el7.x86_64                                                                                                                 9/34
  Verifying  : 1:perl-parent-0.225-244.el7.noarch                                                                                                                 10/34
  Verifying  : 4:perl-5.16.3-292.el7.x86_64                                                                                                                       11/34
  Verifying  : mysql-community-common-8.0.3-0.1.rc.el7.x86_64                                                                                                     12/34
  Verifying  : perl-File-Temp-0.23.01-3.el7.noarch                                                                                                                13/34
  Verifying  : 1:perl-Pod-Simple-3.28-4.el7.noarch                                                                                                                14/34
  Verifying  : perl-Time-Local-1.2300-2.el7.noarch                                                                                                                15/34
  Verifying  : 4:perl-libs-5.16.3-292.el7.x86_64                                                                                                                  16/34
  Verifying  : perl-Pod-Perldoc-3.20-4.el7.noarch                                                                                                                 17/34
  Verifying  : perl-Socket-2.010-4.el7.x86_64                                                                                                                     18/34
  Verifying  : perl-Carp-1.26-244.el7.noarch                                                                                                                      19/34
  Verifying  : mysql-community-libs-8.0.3-0.1.rc.el7.x86_64                                                                                                       20/34
  Verifying  : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                                                                                                              21/34
  Verifying  : perl-Scalar-List-Utils-1.27-248.el7.x86_64                                                                                                         22/34
  Verifying  : 1:perl-Pod-Escapes-1.04-292.el7.noarch                                                                                                             23/34
  Verifying  : perl-Pod-Usage-1.63-3.el7.noarch                                                                                                                   24/34
  Verifying  : perl-Encode-2.51-7.el7.x86_64                                                                                                                      25/34
  Verifying  : perl-podlators-2.5.1-3.el7.noarch                                                                                                                  26/34
  Verifying  : perl-Getopt-Long-2.40-2.el7.noarch                                                                                                                 27/34
  Verifying  : perl-File-Path-2.09-2.el7.noarch                                                                                                                   28/34
  Verifying  : perl-threads-1.87-4.el7.x86_64                                                                                                                     29/34
  Verifying  : perl-Filter-1.49-3.el7.x86_64                                                                                                                      30/34
  Verifying  : mysql-community-client-8.0.3-0.1.rc.el7.x86_64                                                                                                     31/34
  Verifying  : perl-Text-ParseWords-3.29-4.el7.noarch                                                                                                             32/34
  Verifying  : mysql-community-libs-5.7.16-1.el7.x86_64                                                                                                           33/34
  Verifying  : mysql-community-common-5.7.16-1.el7.x86_64                                                                                                         34/34

Installed:
  mysql-community-server.x86_64 0:8.0.3-0.1.rc.el7

Dependency Installed:
  mysql-community-client.x86_64 0:8.0.3-0.1.rc.el7            net-tools.x86_64 0:2.0-0.22.20131004git.el7             perl.x86_64 4:5.16.3-292.el7
  perl-Carp.noarch 0:1.26-244.el7                             perl-Encode.x86_64 0:2.51-7.el7                         perl-Exporter.noarch 0:5.68-3.el7
  perl-File-Path.noarch 0:2.09-2.el7                          perl-File-Temp.noarch 0:0.23.01-3.el7                   perl-Filter.x86_64 0:1.49-3.el7
  perl-Getopt-Long.noarch 0:2.40-2.el7                        perl-HTTP-Tiny.noarch 0:0.033-3.el7                     perl-PathTools.x86_64 0:3.40-5.el7
  perl-Pod-Escapes.noarch 1:1.04-292.el7                      perl-Pod-Perldoc.noarch 0:3.20-4.el7                    perl-Pod-Simple.noarch 1:3.28-4.el7
  perl-Pod-Usage.noarch 0:1.63-3.el7                          perl-Scalar-List-Utils.x86_64 0:1.27-248.el7            perl-Socket.x86_64 0:2.010-4.el7
  perl-Storable.x86_64 0:2.45-3.el7                           perl-Text-ParseWords.noarch 0:3.29-4.el7                perl-Time-HiRes.x86_64 4:1.9725-3.el7
  perl-Time-Local.noarch 0:1.2300-2.el7                       perl-constant.noarch 0:1.27-2.el7                       perl-libs.x86_64 4:5.16.3-292.el7
  perl-macros.x86_64 4:5.16.3-292.el7                         perl-parent.noarch 1:0.225-244.el7                      perl-podlators.noarch 0:2.5.1-3.el7
  perl-threads.x86_64 0:1.87-4.el7                            perl-threads-shared.x86_64 0:1.43-6.el7

Dependency Updated:
  mysql-community-common.x86_64 0:8.0.3-0.1.rc.el7                                    mysql-community-libs.x86_64 0:8.0.3-0.1.rc.el7

Complete!
[root@localhost ~]#

Ao iniciar o MySQL pela primeira vez é gerada uma senha temporária aleatória. Ela será necessária para alterar a senha do usuário root do MySQL para a que você quer (com o comando mysqladmin, abaixo). Isto passou a acontecer no MySQL 5.7, antes o usuário root vinha sem senha por padrão.

[root@localhost ~]# systemctl start mysqld
[root@localhost ~]# grep password /var/log/mysqld.log
2018-01-05T13:42:24.701095Z 5 [Note] A temporary password is generated for root@localhost: &sppofrv3rM
[root@localhost ~]# mysqladmin -u root -p password 'Nerv2018.'
Enter password:
mysqladmin: [Warning] Using a password on the command line interface can be insecure.
Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.
[root@localhost ~]# mysql -u root -pNerv2018.
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.3-rc-log MySQL Community Server (GPL)

Copyright (c) 2000, 2017, 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>

Leave a Reply

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *