All Products
Search
Document Center

Database Backup:Configure the account and password for a data source

Last Updated:Jun 21, 2024

This topic describes how to configure the account and password for a data source in Database Backup (DBS).

Background information

  • If a data source is manually added, the database account and password were configured when you added the data source. You can perform the operations described in this topic to change the account and password based on your business requirements.

  • If a data source is automatically added, only the metadata of the ApsaraDB RDS instance is imported. You must perform the operations described in this topic to configure the database account and password.

Usage notes

The database account that you configure in DBS must have the read and write permissions required to perform backup and restoration operations. The required permissions vary based on the database type. For example, for a MongoDB database, the Read permission is required to back up the database and the ReadWrite permission is required to restore the database.

You must grant the required permissions to the database account to ensure successful backup and restoration operations. For more information, see Account permissions.

Procedure

  1. Log on to the Database Backup (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. Find the data source that you want to manage and click its ID.

    image

    Note

    If no account and password have been configured for a data source, you can directly click Set Username and Password in the Actions column of the data source to configure the account and password.

  4. In the Data source details section, click Set Username and Password next to the Account parameter.

    image

  5. In the Modify data source account password information dialog box, configure the Database Account and Password parameters and click Test Connection.

    image

    Note
    • If the database account and password that you entered are valid, a message that indicates the connection is successful appears.

    • If the database account and password that you entered are invalid, a message that indicates the connection fails appears. In this case, you can click Check to view the cause of failure.

  6. Click Update.

What to do next

After the account and password of the data source are configured, you can back up data. For more information, see Back up databases.