Install MySQL 5.7 On RHEL 8 in AWS

Share via:

Dear Readers,

In this article, we will see the following Install MySQL 5.7 On RHEL 8.

Steps to Follow :
  1. Logging to AWS Account
  2. Launch MySQL Server
  3. Connect to Linux EC2 Instance by Using Putty
  4. Switch to root user
  5. Install Server Updates
  6. Install wget package
  7. Disable MySQL Module
  8. Download 5.7 Binaries (rpm)
  9. Install 5.7 Binaries (rpm)
  10. Install MySQL Server 5.7
  11. Start the Service of MySQL
  12. Get the temporary Password
  13. Setting the root Password
  14. Connect to MySQL Database

 

1. Logging to AWS Account

First, we need to AWS Console page by using below link.

https://aws.amazon.com/console/

Click on sign in to Console button.

Logging to aws account

Login using username & password and click on sign in.

Enter to AWS Management Console

We can see the AWS Management Console Dashboard.

Go to Services, under the compute module click EC2 service to open.

2. Launch MySQL Server

Go to Services, under the compute module click EC2 service to open.

We can launch Windows Server by using below link.

How to Launch Linux EC2 Instance

We can see the windows server has been launched successfully.

3. Connect to Linux EC2 Instance Using Putty

We can connect putty by using below link.

Connect to EC2 Instance Using Putty

4. Switch to root user

5. Install Server updates

6. Install wget package 

7. Disable MySQL Module 

8. Download 5.7 Binaries (rpm)

Go to mysql official website by using below link.

http://repo.mysql.com/

Select 5.7 binary (rpm) and copy the link address by giving right click.

Go to server terminal and download the rpm

9. Install 5.7 Binaries (rpm)

10. Install MySQL Server 5.7

Check Version of MySQL

11. Start the Service of MySQL

Check the Status of MySQL 

12. Get the temporary password

13. Setting the root Password 

This command enables you to improve the security of your MySQL installation in the following ways:
👉 You can set a password for root accounts.
👉 You can remove root accounts that are accessible from outside the local host.
👉 You can remove anonymous-user accounts.
👉 You can remove the test database, which by default can be accessed by anonymous users.

14. Connect to MySQL Database

Check the version of MySQL 

 

Thank you for giving your valuable time to read the above information.
Follow us on 
Website  www.ktexperts.com
Facebook Page KTexperts
Linkedin Page : KT EXPERTS

Follow Me
Ramesh’s Linkedin : Ramesh Atchala

Share via:
Note: Please test scripts in Non Prod before trying in Production.
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Add Comment