Installing MySQL on Amazon Linux Using the MySQL Yum Repository(Article -08).

Share via:
Installing MySQL on Amazon linux Using the MySQL Yum Repository
In this article we will see steps to install MySQL on Amazon Linux Using the MySQL Yum Repository

Use below link to create EC2 instance

Launch linux virtual server ec2 instance in aws

Steps to install MySQL Community server

1.Update Server packages on OS.

2.Install wget command.

3.Download RPM files from http://dev.mysql.com/downloads/repo/yum/ click on download button.

4. Install rpm to local servers

5.Check version of community severe available on local server

6.Enable 5.7 community server on local server

7.Disable 8.0 community server on local server

8. install MySQL 5.7 using yum install mysql-community-server command.

9.Start the mysqld service

10 Login to MySQL

Step 1 :

Update Server packages on OS.

Step 2 :

Install wget command. 

Step 3 :

Download RPM using wget command

Output :

Give command  ll and check repository is saved or not .

Step 4 :

Install rpm to local servers

use yum localinstall

Step 5 :
Check which version of community severe available on local server

we have mysql 8.0 available on local server

if we want to install 8 directly we can use yum install mysql-community server

In case if we want lower version of mysql (5.7)

Then follow below steps

Step 6 :

Enable 5.7 community server on local server

check repolist

We have both 5.7 and 8.0 are available so disable MySQL 8.0 community server

Step 7:

Disable MySQL 8.0 Community Server

Check Repolist

Step 8 :

Now we can install MySQL 5.7 using yum install mysql-community-server command.

Output :

 

Once MySQL-community server installed , we need to start the service

Step 9 :

start the mysqld service

If you want to login mysql we need password

By default password will be available in error logfile

Default location of error log is /etc/log/mysqld.log

Step 10:

Login to MySQL using passwd from error log file

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

 

Facebook Page: KTexperts

Ajay Kumar’s Linkedin : https://www.linkedin.com/in/ajay-kumar90/

Ajay kumar’s Facebook : https://www.facebook.com/www.ajaykumar.binnary

 

Share via:
Note: Please test scripts in Non Prod before trying in Production.
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading...

Add Comment