As a terminal fan probably you would wonder how to establish a connection to your database endpoint. The thing is that you need to have the MySQL client installed on your Amazon Linux instance. It’s an easy one, but let’s see how to do it.
Prerequisites
- Amazon Linux 2
- sudo privileges
Install MySQL Client on Amazon Linux 2
Step 1. Update the packages.
sudo yum update
Step 2. Install the MySQL Client.
sudo yum install mysql
Step 3. Verify the installation.
mysql --version
Output:
mysql Ver 15.1 Distrib 5.5.68-MariaDB, for Linux (aarch64) using readline 5.1
Step 4. MySQL’s command to connect to your endpoint:
mysql -h hostname -u username -p
Conclusion
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.