Question: I am trying to install mysql in amazon linux 2 ami and am not able to do it.

```
sudo yum install mysql56-server -> doesn't work
amazon-linux-extras list -> doesn't list mysql

```

I do not want mariadb since I have more exposure to mysql (even if both are the same)

Answer: 
Amazon's [documentation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html) seems to recommend using MariaDB (a fork of MySQL). To install:

```
sudo yum -y install mariadb-server
sudo service mariadb start

```
I have installed MySQL on Amazon Linux 2

here are the commands

Install MySQL server in Amazon Linux 2

```
sudo yum update -y 

sudo yum install -y mariadb-server

sudo systemctl enable mariadb

sudo systemctl start mariadb

sudo mysql_secure_installation

```

I have created a video on this here

<https://www.youtube.com/watch?v=h6sdw6wWNbY>