MySQL provides client installation packages for different OSs on its official website. Click here to download the MySQL 8.0 client installation package or click here to download the packages of other versions. The following uses Red Hat Linux as an example to show how to obtain the required installation package and install it.
Find the link to the required version on the download page. The mysql-community-client-8.0.21-1.el6.x86_64 is used as an example in the following.
When you create an ECS, select an OS, such as Red Hat 6.6, and bind an EIP to it. Then, upload the installation package to the ECS using a remote connection tool, and use PuTTY to connect to the ECS.
sudo rpm -ivh mysql-community-client-8.0.21-1.el6.x86_64.rpm
rpm -ivh --replacefiles mysql-community-client-8.0.21-1.el6.x86_64.rpm
rpm -ivh --nodeps mysql-community-client-8.0.21-1.el6.x86_64.rpm