This isYou said this was a normal fedora, so a simple
sudo dnf install mysql
willwould install a MySQL server. Done!
(You might notice that the package you're getting might be called mariadb, but that doesn't change the fact you're getting MySQL. It's just that the software that is now called "MySQL" is a fork of the original MySQL under a different license for commercial reasons of Oracle. "MariaDB" is a different fork of what is originally called "MySQL", the one that continues the community-oriented development. If you want a LAMP setup, you generally want MariaDB, not the new MySQL, unless you have an expensive service contract with Oracle – but then you wouldn't come here for installation advice, but use their service, I guess.)
Turns out you have Amazon Linux, not Fedora. Try installing dnf install mariadb.