Skip to content

Unable to find a match: mysql on ec2-connect

1

When i ran this command on ec2- connect

EC2 - ImageId='ami-0ded8326293d3201b'

sudo yum install -y mysql Last metadata expiration check: 0:24:15 ago on Sat Sep 2 07:03:34 2023. No match for argument: mysql Error: Unable to find a match: mysql

although i have configure security group to MYSQL/Aurora and also set the VPC

asked 3 years ago11.1K views

3 Answers
7
Accepted Answer

Hello.

The Amazon Linux 2023 repository does not seem to contain MySQL.
https://docs.aws.amazon.com/linux/al2023/release-notes/support-info-by-package.html

Therefore, the following installation procedure must be used.

sudo su -
dnf -y localinstall https://dev.mysql.com/get/mysql80-community-release-el9-4.noarch.rpm
dnf -y install mysql mysql-community-client

If you are installing MySQL Server as well as MySQL Client, please also execute the following commands.

dnf install mysql-community-server
EXPERT

answered 3 years ago

EXPERT

reviewed 3 years ago

EXPERT

reviewed 3 years ago

0

Update all the package using below command and then try installing MySql:

sudo yum update -y

sudo yum install mysql -y

answered 2 years ago

0

Run the following commands in order:

sudo dnf -y localinstall https://dev.mysql.com/get/mysql80-community-release-el9-4.noarch.rpm

sudo dnf -y install mysql mysql-community-client

sudo dnf install mysql-community-server

sudo yum update -y

sudo yum install mysql -y

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.