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 ~]$

gefragt vor einem Jahr6841 Aufrufe
2 Antworten
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
beantwortet vor einem Jahr
  • 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

beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen