- Product Bulletin
- Service Overview
- Getting Started
-
User Guide
-
Working with FlexusRDS for MySQL
- Using IAM to Grant Access to FlexusRDS
- Buying a FlexusRDS for MySQL Instance
- Connecting to a FlexusRDS for MySQL Instance
- Suggestions on Using FlexusRDS for MySQL
- Data Migration
-
Instance Management
- Upgrading the Minor Version of a FlexusRDS for MySQL Instance
- Upgrading a FlexusRDS for MySQL Instance to an RDS DB Instance
- Changing the Name of a FlexusRDS for MySQL Instance
- Rebooting FlexusRDS for MySQL Instances
- Resetting the Administrator Password of a FlexusRDS for MySQL Instance
- Enabling Storage Autoscaling for a FlexusRDS for MySQL Instance
- Binding an EIP to a FlexusRDS for MySQL Instance or Unbinding an EIP from a FlexusRDS for MySQL Instance
- Changing the VPC and Subnet of a FlexusRDS for MySQL Instance
- Renewing FlexusRDS for MySQL Instances
- Unsubscribing from a FlexusRDS for MySQL Instance
- Backups and Restorations
- Parameters
- Monitoring
- Logs
- Interconnection with CTS
- FlexusRDS for MySQL Tags
- FlexusRDS for MySQL Quotas
-
Working with FlexusRDS for PostgreSQL
- Permissions Management
- Buying a FlexusRDS for PostgreSQL Instance
- Connecting to a FlexusRDS for PostgreSQL Instance
- Suggestions on Using FlexusRDS for PostgreSQL
- Data Migration
-
Instance Management
- Changing the Name of a FlexusRDS for PostgreSQL Instance
- Rebooting FlexusRDS for PostgreSQL Instances
- Resetting the Administrator Password of a FlexusRDS for PostgreSQL Instance
- Enabling Storage Autoscaling for a FlexusRDS for PostgreSQL Instance
- Binding an EIP to a FlexusRDS for PostgreSQL Instance or Unbinding an EIP from a FlexusRDS for PostgreSQL Instance
- Renewing FlexusRDS for PostgreSQL Instances
- Unsubscribing from a FlexusRDS for PostgreSQL Instance
-
Backups and Restorations
- Creating a Manual Backup for a FlexusRDS for PostgreSQL Instance
- Deleting a Manual Backup of a FlexusRDS for PostgreSQL Instance
- Downloading a Full Backup of a FlexusRDS for PostgreSQL Instance
- Checking and Exporting Backup Information of a FlexusRDS for PostgreSQL Instance
- Restoring a FlexusRDS for PostgreSQL Instance
- Parameters
- Monitoring Management
- Logs
- Interconnection with CTS
- FlexusRDS for PostgreSQL Tags
- FlexusRDS for PostgreSQL Quotas
-
Working with FlexusRDS for MySQL
- API Reference
-
FAQs
- What Is FlexusRDS?
- Can FlexusRDS for MySQL and RDS for MySQL Instances Access Each Other?
- Can I Change the Instance Class of My FlexusRDS Instance?
- Does FlexusRDS Support Cross-AZ HA?
- What Is the Backup Policy of FlexusRDS?
- How Are FlexusRDS Backups Billed?
- How Do I Download FlexusRDS Backups to Restore Data Locally?
- Why Does the Root User of My FlexusRDS for MySQL Instance Not Have Super Permissions?
- Which Storage Engine Does FlexusRDS for MySQL Provide?
- Why Does FlexusRDS for MySQL Not Support the MyISAM Storage Engine?
- Does FlexusRDS for MySQL Support Read Replicas?
- Why Can't I Ping the EIP After It Is Bound to My FlexusRDS for MySQL Instance?
- How Do I Create Accounts and Databases for My FlexusRDS Instance?
- What Major Versions and Minor Versions Does FlexusRDS for MySQL Support?
- Why Are Pay-per-Use Instances Not Provided by FlexusRDS?
- Can I Scale Up the Storage Space of My FlexusRDS for MySQL Instance?
- General Reference
Copied.
Using CLI to Connect to a FlexusRDS for MySQL Instance
Scenarios
You can connect to your DB instance using the MySQL command-line interface (CLI) from a FlexusX instance with a MySQL client installed.
Procedure
- Log in to the FlexusX instance in the same region as your FlexusRDS DB instance.
- Download the MySQL client installation package for Linux to the FlexusX instance. The package mysql-community-client-5.7.38-1.el6.x86_64.rpm is used as an example.
wget https://dev.mysql.com/get/mysql-community-client-5.7.38-1.el6.x86_64.rpm
NOTE:
A MySQL client running a version later than that of the FlexusRDS for MySQL DB instance is recommended.
- Install the MySQL client.
rpm -ivh --nodeps mysql-community-client-5.7.38-1.el6.x86_64.rpm
NOTE:
- If any conflicts occur during the installation, add the replacefiles parameter to the command and install the client again.
rpm -ivh --replacefiles mysql-community-client-5.7.38-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-community-client-5.7.38-1.el6.x86_64.rpm
- If any conflicts occur during the installation, add the replacefiles parameter to the command and install the client again.
- Run the following command on the FlexusX instance to connect to the FlexusRDS for MySQL DB instance:
mysql -h <host> -P <port> -u <userName> -p
Example:
mysql -h 192.168.0.1 -P 3306 -u root -p
Table 1 Parameter description Parameter
Description
<host>
- Private network connection (recommended): Click the DB instance name and obtain the floating IP address on the Overview page.
- Public network connection: Click the DB instance name and obtain the EIP on the Overview page. For details about how to bind an EIP to a DB instance, see Binding an EIP to a FlexusRDS for MySQL Instance or Unbinding an EIP from a FlexusRDS for MySQL Instance.
NOTE:
If the FlexusX instance and the FlexusRDS for MySQL DB instance are in the same region and VPC, you are advised to connect to the DB instance through a private network for higher security.
If a DB instance cannot be accessed through a private network, connect to it through a public network.
Figure 1 Network informationTo connect to your DB instance through an EIP, add the EIP and port 3306 to an inbound rule of security group sg-default-smb. For details, see Adding a Security Group Rule.
Figure 2 Adding an inbound rule
<port>
3306
<userName>
root
- When the following information is displayed, enter the password of user root:
Enter password:
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