Linux supports a number of different solutions for installing MySQL. We recommend that you use one of the distributions from Oracle, for which several methods for installation are available. Please check this link for more information. I’ll explain the installation of MySQL5.7 on Oracle Linux 7.

If you want to run the most recent version, you can use the MySQL yum repository available here.Download and install the repository package.

Set the mysqld service auto start on reboot and start the service.

Create directories to hold MySQL data and binary logs.

Edit the “/etc/my.cnf” file, setting the following values in the “[mysqld]” section.

Run the “/usr/bin/mysql_secure_installation” script to secure the installation and get the temp root password from “/u01/log/mysqld.log”.

Now test the database connections.

Hope this helps!!!!

Mandy

Reference
https://dev.mysql.com/doc/refman/5.7/en/installing.html

 

Leave a Reply