If we need to install MySQL client on an AWS ECS task, Here is the steps:

  1. install wget
apt install wget
  1. install MySQL client
wget [https://dev.mysql.com/get/mysql-apt-config_0.8.16-1_all.deb](https://dev.mysql.com/get/mysql-apt-config_0.8.16-1_all.deb)

apt install lsb-release gnupg -y

dpkg -i mysql-apt-config_0.8.16-1_all.deb

apt update

apt install mysql-client -y
  1. when connect to MySQL server add param:
--ssl-mode=DISABLED