During a database migration, accounts need to be migrated separately.
During the migration of MySQL databases, there are accounts that can be migrated completely, accounts whose permissions need to be reduced, and accounts that cannot be migrated.
You can click View in the Remarks column to view detailed information about the permission to be reduced. You can then determine whether the permission reduction will have an impact on your services.
You can choose whether to migrate the accounts. Perform the following operations to set the database username, permission, and password. The following procedure uses all database users that can be migrated as an example.
The account information consists of account name, permission, and password.
After the migration is successful, accounts in the destination database are those whose permissions need to be reduced.
You can use either of the following methods to migrate account passwords:
DRS does not check your password strength during migration so you should set a strong password to ensure data security.
Method 1: Migrate the password.
You can directly migrate the current password of the source system. In this case, you do not need to select Reset Password. After the passwords are migrated to the destination database, you can set a strong password to ensure database security.
Method 2: Reset the password.
You can select Reset Password to reset the password of the source system and then continue the password migration.
You can enter new passwords in the Passwords column for specified accounts that can be migrated, or select all accounts that can be migrated and select Set Unified Password to set a unified new password for them. After the migration is successful, you can run DDL statements on the destination database to reset the password.
If an account already exists in the destination database, it cannot be migrated. You can delete it from the destination database. After the deletion, you can continue the migration.
During the migration of MongoDB databases, accounts to be migrated can be classified into the following types: accounts that can be migrated completely and accounts that cannot be migrated.
You can choose whether to migrate the accounts. If you need to migrate the accounts, perform the following procedures.
The account information consists of account name and role.
If the account to be migrated depends on some roles, you must migrate the roles. Otherwise, the migration fails.