How to Install MySQL Client on Amazon Linux 2023

To Nha Notes | Feb. 7, 2025, 7:02 p.m.

If you're using Amazon Linux 2023 and need to install the MySQL client, you can do so easily with the following command:

sudo dnf install mariadb105 -y

Why MariaDB?

Amazon Linux 2023 does not provide a separate package for the MySQL client. However, the MariaDB 10.5 client is fully compatible with MySQL and provides the mysql command-line tool.

Verification

After installation, you can check the MySQL client version with:

mysql --version

References