Thursday, January 31, 2019

Install MySQL on Linux

                    Will be discussing on installing latest MySQL open source relational database system version 8.0 on OEL7. You can download the MySQL software from https://dev.mysql.com/downloads/repo/yum/ or Oracle Metalink website. Let's get started, we can split this installation into three parts as below:

1. Download MySQL software
2. Secure MySQL Installation
3. Create the Database

[root@sajidserver~]#yum install mysql-community-server

Look for the temporary password, which you need it for secure installation.

[root@sajidserver~]#grep 'temporary password' /var/log/mysqld.log
2019-01-05T00:02:55.258804Z 5 [Note] [MY-010454] [Server] A temporary 
password is generated for root@localhost: zytrk7-j<




Now let's connect to MySQL and create the database.