Buying and Connecting to a FlexusRDS for MySQL Instance
This section describes how to purchase a FlexusRDS for MySQL instance and how to connect to it using Data Admin Service (DAS).
Preparations
- Sign up for a HUAWEI ID and enable Huawei Cloud services.
- Before purchasing DB instances, ensure that your account balance is sufficient. Top up your account if required.
- For fine-grained permissions management, create an Identity and Access Management (IAM) user and user group on the IAM console and grant the user specific operation permissions. For details, see Creating a User and Granting Permissions.
Step 1: Create a FlexusRDS for MySQL Instance
- Go to the FlexusRDS console.
- If this is your first time to create a FlexusRDS for MySQL instance, click Buy.
- Configure the instance information and click Buy.
Figure 1 Selecting an instance classFigure 2 Selecting the required duration
Parameter
Example Value
Description
Region
CN-Hong Kong
The region where your resources are located.
NOTE:Products in different regions cannot communicate with each other through a private network. After a DB instance is created, the region cannot be changed. Therefore, exercise caution when selecting a region.
DB Engine
MySQL 8.0
The DB engine version.
Instance Class
Standard 2U4G
The vCPU and memory of an instance.
DB Instance Type
Single
The architecture type of an instance.
- Single: A single-node architecture. It is less expensive than a primary/standby DB pair.
- Primary/Standby: An HA architecture. In a primary/standby pair, each instance has the same instance class. When a primary instance is being created, a standby instance is provisioned along with it to provide data redundancy. The standby instance is invisible to you after being created.
Storage
120 GB
The storage space of an instance.
It contains the system overhead required for inodes, reserved blocks, and database operation.
Network
vpc-default-smb
subnet-default-smb
A Virtual Private Cloud (VPC) is a virtual network in which your instance is located. A VPC can isolate networks for different workloads.
A subnet provides dedicated network resources that are logically isolated from other networks for security purposes.
For details about how to create a VPC and subnet, see Creating a VPC and Subnet.
DB Instance Name
flexusrds-1234
The instance name must start with a letter and consist of 4 to 64 characters. Only letters (case-sensitive), digits, hyphens (-), underscores (_), and periods (.) are allowed.
If you buy multiple DB instances at a time, they will be named instance-0001, instance-0002, and so on. (instance indicates the DB instance name you specify.)
Required Duration
1 year
The system will automatically calculate the configuration fee based on the selected required duration. The longer the required duration is, the larger discount you will enjoy.
Auto-renew
Disabled
- This option is not selected by default.
- If you select this option, the auto-renew cycle is determined by the selected required duration.
Quantity
1
The number of instances to be purchased in a batch.
- Confirm the order and click Pay Now.
Figure 3 Order confirmation
- Select a payment method and complete the payment.
- View the purchased instance.
- Administrator account: root
- Password of the administrator account: The password is randomly set by the system. You need to reset the password when using the account.
Figure 4 Instance successfully purchased
Step 2: Connect to the FlexusRDS for MySQL Instance
- In the instance list, locate the instance and click Reset Password in the Operation column.
Figure 5 Instance list
- Enter a new password, confirm the password, and click OK.
Figure 6 Resetting a password
- In the instance list, locate the instance and click Log In in the Operation column.
Figure 7 Instance list
- Enter username root and its password, and click Log In.
Figure 8 Instance login
- Click Create Database.
Figure 9 Creating a database
- Complete the database creation.
Figure 10 Database information
- Click the database name. On the displayed page, you can create tables, views, stored procedures, events, triggers, and functions.
Figure 11 Database management
- Click Create Table.
Figure 12 Creating a table
- Insert table data and click Create.
Figure 13 Inserting data into the table
- View the new table.
Figure 14 Table information
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