This topic describes how to configure the account and password for a data source.
- If your data source is manually added, its account and password were configured when they were added. You can change its account and password based on this topic.
- If your data source is automatically added, you must configure the account and password for the data source because the system imports only the metadata from the ApsaraDB RDS instances.
To back up and restore data in Database Backup (DBS), the database account must have
read and write permissions on the database that you configure. The required permissions
for backup and restoration tasks vary based on database engines. For example, to back
up data from an ApsaraDB for MongoDB instance, the database account must have the
Read permission on the database. To restore data from an ApsaraDB for MongoDB instance,
the database account must have the
ReadWrite permission on the database.
You must clarify the required permissions of the database account. For more information, see Database permissions.
- Log on to the DBS console.
- In the left-side navigation pane, click Data Source. On the Data Source page, select a region in the upper-left corner.
- Click the data source that you want to configure.Note To configure the database account and password for a data source, you can click Set account password in the Actions column corresponding to the data source.
- In the Data source information section, click Set account password.
- In the Modify data source account password information dialog box, set Database Account and Password, and then click Test Connection.Note
- If the configured database account and password are valid, a message appears, indicating that the connection is successful.
- If the configured database account and password are invalid, a message appears, indicating that the connection fails. You can click Check to view the cause of failure.
- Click Update.
What to do next
After you configure the account and password for a data source, you can back up data. For more information, see Back up one or more databases.