This topic describes how to configure the account and password for a data source.

Background information

  • 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.

Precautions

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.

Procedure

  1. Log on to the DBS console.
  2. In the left-side navigation pane, click Data Source. On the Data Source page, select a region in the upper-left corner.
  3. Click the data source that you want to configure.
    edws
    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.
  4. In the Data source information section, click Set account password.
    sssaa
  5. 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.
  6. 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 databases.