forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com> Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
5.1 KiB
5.1 KiB
How Can I Install the MySQL Client?
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.
Procedure
- Obtain the installation package.
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.
- Upload the installation package to the ECS.
- Run the following command to install the MySQL client:
sudo rpm -ivh mysql-community-client-8.0.21-1.el6.x86_64.rpm
- 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-community-client-8.0.21-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-community-client-8.0.21-1.el6.x86_64.rpm
- If any conflicts occur during the installation, add the replacefiles parameter to the command and try to install the client again. Example:
Parent topic: FAQs