mariadb installation issue in amazon linux ec2 instance

1

Hi, Can you please help to install maria db in amazon linux ec2 instance. While i was trying to install the server with the below command i am getting the following error as unable to find a match. am i missing anything ?

[ec2-user@planetm ~]$ sudo yum install -y mariadb-server Last metadata expiration check: 4:46:51 ago on Sat Mar 18 17:35:23 2023. No match for argument: mariadb-server Error: Unable to find a match: mariadb-server [ec2-user@planetm ~]$

asked a year ago6759 views
2 Answers
2

Hi Which AMI are you using? On Amazon Linux 2023, you need to try "yum install -y mariadb105-server".

On RPM based system, you can list the packages available using "yum list | grep -i maria" to find available versions if the above command does not work

--Syd

profile picture
Syd
answered a year ago
  • Thanks! There is also "yum list available maria*"

0

Could you please advise which AMI you are using, the latest Amazon Linux 2023 AMI or Amazon Linux 2 AMI (HVM) - Kernel 5.10, SSD Volume Type, and also check the version of PHP. Every question has its own merit - I actually do not know your situation.

If you use Amazon Linux 2 AMI, please apply the following commands:

$sudo yum update -y

$sudo amazon-linux-extra | grep mariadb

$sudo amazon-linux-extra install -y mariadb10.5 ((note, choose your own version)

For Amazon Linux 2023 AMI follow the link:

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2023.html

answered a year 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.

Guidelines for Answering Questions