Sharing a DB Instance with Others
If you have a DB instance and want to share it with another account or another user of the same account, but you do not want the account or user to know the password of the shared login or to view other DB instances in your account besides the shared one, you can choose to share the login details of one of your DB instances.
Prerequisites
- You have two accounts or one account with two IAM users.
- You have obtained IDs of the IAM users.
Precautions
- Users sharing your DB instance logins cannot add databases or users.
- Data tracking and rollback and background tasks are not available to the DB instances whose login information you have shared with other users.
Viewing the UID of the Shared Account
- Log in to the management console as an IAM user.
- Click in the upper left corner and select a region and project.
- Click in the upper left corner, and under Databases, click Data Admin Service.
- In the navigation pane on the left, choose Development Tool.
You can also click Go to Development Tool on the overview page.
- Click the DB Instance Connections Shared by Others tab.
Figure 1 DB Instance Connections Shared by Others
- Click View My User ID. On the displayed page, copy the user ID.
Figure 2 Viewing my user ID
Sharing a DB Instance with Others
- Log in to the DAS console using a Huawei Cloud account.
- Click in the upper left corner and select a region and project.
- Click in the upper left corner, and under Databases, click Data Admin Service.
- In the navigation pane on the left, choose Development Tool.
You can also click Go to Development Tool on the overview page.
- On the My DB Instance Connections tab, locate the DB instance you want to share and click the number in the Additional Users column.
Figure 3 Database list
- On the displayed View Additional Users page, click Add User.
Figure 4 Viewing users of the shared login
- On the displayed Add User page, select an adding method.
- Manual input: Enter the ID of the user that you want to share your DB instance login with. If multiple users need to be added, separate their IDs with semicolons (;).
Figure 5 Manually entering a user
- Synchronize IAM account: Select another IAM user of the current account. You can also use the UID to quickly search for shared user information.
Figure 6 Synchronizing IAM users
- Synchronize EPS user: Specify an account and group and select required users.
Figure 7 Synchronizing EPS users
- Manual input: Enter the ID of the user that you want to share your DB instance login with. If multiple users need to be added, separate their IDs with semicolons (;).
- Confirm the settings and click OK.
- Use the shared account to log in to the console and check whether the shared DB instance is displayed in the list on the DB Instance Connections Shared by Others tab page.
Figure 8 Successful addition
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