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

```
You can install it by just 1 command
sudo yum install mysql 

Then follow AWS documentation on how to connect rds to mysql