Installing a MySQL Client
MySQL provides client installation packages for different OSs on its official website. MySQL 5.6 is used here 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-client-5.6.31-1.el6.x86_64.rpm is used as an example in the following figure.
Figure 1 Download
- Upload the installation package to the ECS.
- When you create an ECS, select an OS, such as Red Hat 6.6, 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:
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 dependent package during the installation, add the nodeps parameter to the command and install the client again.
rpm -ivh --nodeps 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:
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot