• Relational Database Service

rds
  1. Help Center
  2. Relational Database Service
  3. User Guide
  4. FAQs
  5. Connection and Access FAQs
  6. How Can I Install the MySQL Client?

How Can I Install the MySQL Client?

MySQL provides client installation packages for different OSs on its official website. MySQL 5.6 is used as an example. Click here to download the MySQL 5.6 client installation package or click here to download other versions of the packages. The following procedure uses Red Hat Linux OS as an example to illustrate how to obtain the required installation package and install the MySQL client.

Procedure

  1. Obtain the installation package.

    Find the link to the required version on the download page. MySQL-client-5.6.31-1.el6.x86_64.rpm is used as an example in the following figure.

    Figure 1 Downloading the MySQL client installation package
    NOTE:

    Click No thanks, just start my download. to download the installation package.

  2. Upload the installation package to the ECS.

    NOTE:

    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 tool, and use PuTTY to connect to the ECS.

  3. Run the following command to install the MySQL client:

    sudo rpm -ivh MySQL-client-5.6.31-1.el6.x86_64.rpm
    NOTE:
    • If any conflicts occur during the installation, add the replacefiles parameter to the command and try to install the client again. Example:
      rpm -ivh --replacefiles MySQL-client-5.6.31-1.el6.x86_64.rpm
    • If you are prompted to install a dependency package, add the nodeps parameter to the command and install the client again. Example:
      rpm -ivh --nodeps MySQL-client-5.6.31-1.el6.x86_64.rpm