I solved this problem by installing MySQL 5.7:
Step 1 – Enable MySQL Repository
First of all, You need to enable MySQL 5.7 community release yum repository on your system. The rpm packages for yum repository configuration are available on MySQL official website. Use on of below command as per your operating system version.
On CentOS and RHEL 7
yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
On CentOS and RHEL 6
yum localinstall https://dev.mysql.com/get/mysql57-community-release-el6-9.noarch.rpm
On Fedora 27
dnf install https://dev.mysql.com/get/mysql57-community-release-fc27-9.noarch.rpm
On Fedora 26
dnf install https://dev.mysql.com/get/mysql57-community-release-fc26-9.noarch.rpm
On Fedora 25
dnf install https://dev.mysql.com/get/mysql57-community-release-fc25-9.noarch.rpm
Step 2 – Install MySQL 5.7 Server
As you have successfully enabled MySQL yum repository on your system. Now, install MySQL 5.7 community server using following commands as per your operating system version.
On CentOS and RHEL 7/6
yum install mysql-community-server
On Fedora 27/26/25
dnf install mysql-community-server
source: https://tecadmin.net/install-mysql-5-7-centos-rhel/