How to install MySQL on AmazonLinux2023

0 min read 84 words

If you are using Amazon Linux 2023 base-image, and you have tried to run yum install -y mysql, you will soon realize that it doesn’t work.

Instead install MySQL on Amazon Linux 2023 like this:

sudo dnf update -y
sudo dnf install mariadb105-server

For advanced use-cases where you are installing this in a Docker-in-Docker environment, do it without the sudo, as follows:

dnf update -y
dnf install mariadb105-server

Now if you run mysql, you will no longer get the mysql: command not found message.

Andrew
Andrew

Andrew is a visionary software engineer and DevOps expert with a proven track record of delivering cutting-edge solutions that drive innovation at Ataiva.com. As a leader on numerous high-profile projects, Andrew brings his exceptional technical expertise and collaborative leadership skills to the table, fostering a culture of agility and excellence within the team. With a passion for architecting scalable systems, automating workflows, and empowering teams, Andrew is a sought-after authority in the field of software development and DevOps.

Tags