Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mariadb installation on Amazon linux 2

Can someone provide steps to install mariadb on amazon linux 2? I am pretty new in linux, so a little detail will be greatly appreciated. I have seen few links to install maria db on centOs but not sure if the same works for Amazon linux 2

like image 776
dbNovice Avatar asked May 10 '26 18:05

dbNovice


1 Answers

Here you go:

  1. Install and Start MariaDB
sudo yum update -y
sudo yum install -y mariadb-server
sudo systemctl start mariadb
sudo systemctl enable mariadb
  1. Secure DB server. Select the relevant option's during command run.
sudo mysql_secure_installation

But I recommend you to install MariaDB from official repo for latest version by following instructions in this link.

like image 127
initanmol Avatar answered May 19 '26 00:05

initanmol



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!