How Can I Install the MySQL Client?¶
MySQL provides client installation packages for different OSs on its official website. MySQL 8.0 is used as an example. You can download the latest version or any other version for your project. The following procedure illustrates how to obtain the required installation package and install the MySQL client into a Red Hat Linux system.
Procedure¶
Obtain the installation package.
Find the link to the required version on the download page. mysql-community-client-8.0.26-1.el8.x86_64.rpm is used as an example in the following figure.
Upload the installation package to the ECS.
When you create an ECS, select an OS, such as Red Hat 8.8, and bind an EIP to it.
Use a remote connection tool to connect to the ECS through the bound EIP and upload the installation package to the ECS.
Run the following command to install the MySQL client:
rpm -ivh --nodeps mysql-community-client-8.0.26-1.el8.x86_64.rpm