Install MySQL 8.0 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 8.0 Binaries (rpm)
  9. Install 8.0 Binaries (rpm)
  10. Install MySQL Server 8.0
  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 Linux EC2 Instance

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

Go inside the Linux Server Terminal.

4. Switch to root user

5. Install Server updates

6. Install wget package 

7. Disable MySQL Module 

8. Download 8.0 Binaries (rpm)

Go to mysql official website by using below link.

http://repo.mysql.com/

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

Go to server terminal and download the rpm

9. Install 8.0 Binaries (rpm)

10. Install MySQL Server 8.0

11. Check Version of MySQL

12. Start the Service of MySQL

13. Check the Status of MySQL 

14. Get the temporary password

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.

Connect to MySQL Database

15. Check the version of MySQL 

 

Thank you for giving your valuable time to read the above information. Please click here to subscribe for further updates

KTEXPERTS is always active on below social media platforms.

Facebook : https://www.facebook.com/ktexperts/
LinkedIn : https://www.linkedin.com/company/ktexperts/
Twitter : https://twitter.com/ktexpertsadmin
YouTube : https://www.youtube.com/c/ktexperts
Instagram : https://www.instagram.com/knowledgesharingplatform

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