Help Center > > FAQs> Client Installation> How Can I Install the MySQL Client?

How Can I Install the MySQL Client?

Updated at: Jun 09, 2021 GMT+08:00

MySQL provides client installation packages for different OSs on its official website. MySQL 5.6 is used as an example. Download the MySQL 5.6 client installation package or other versions of the packages. The following procedure illustrates how to obtain the required installation package and install the MySQL client into a Red Hat Linux system.

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 Procedure

    Click URL to download the installation package.

  2. Upload the installation package to the ECS.

    1. When you create an ECS, select an OS, such as Red Hat 6.6, and bind an EIP to it.
    2. Use a remote connection tool to connect to the ECS through the bound EIP and upload the installation package 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
    • If there are any conflicts 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 a message is displayed prompting you to install a dependency package, you can 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

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel