Sep 19, 2018

How to install Oracle MySQL on Oracle Linux / Red Hat / CentOS 7

The most convenient way is to install from MySQL Yum Repository

Download MySQL Yum Repository

If you encounter:

FATAL ERROR: please install the following Perl modules before executing /bin/mysql_install_db:
Data::Dumper

Then
# yum -y install perl-Data-Dumper

Installed:
  perl-Data-Dumper.x86_64 0:2.145-3.el7                
                   
And re-install it from scratch. Or else it will ask you root's password but you cannot find the temporary root password.