Checking Whether the Source Database User Has Sufficient Permissions
MySQL Migration
| Check Item | Whether the source database user has sufficient permissions |
|---|---|
| Description | The source database user must have sufficient permissions.
If the permissions are insufficient, the migration will fail. |
| Failure Cause and Handling Suggestion | Failure cause: In a full migration, the source database user must have the SELECT, SHOW VIEW, and EVENT permissions. Handling suggestions: Grant the source database user the corresponding permissions. |
| Failure cause: In an incremental migration, the source database user must have the following permissions: SELECT, SHOW VIEW, EVENT, LOCK TABLES, REPLICATION SLAVE, REPLICATION CLIENT, In the DR scenario, the following permissions are required: CREATE, ALTER, DROP, DELETE, INSERT, UPDATE, and INDEX. Handling suggestions: Grant the source database user the corresponding permissions. | |
| Failure cause: Insufficient user permissions Handling suggestion: Check whether the database user permissions meet the migration requirements. | |
| Failure cause: Internal error Handling suggestion: Contact Huawei technical support. |
PostgreSQL Migration
| Check Item | Whether the source database user has sufficient permissions |
|---|---|
| Description | The source database user must have sufficient permissions.
If the permissions are insufficient, the migration will fail. |
| Failure Cause and Handling Suggestion | Failure cause: This item cannot be checked because the source database fails to be connected. Handling suggestion: Check whether the source database is connected. |
| Failure cause: Insufficient user permissions Handling suggestion: Check whether the database user permissions meet the migration requirements. | |
| Failure cause: In a full migration, the source database user must have the SELECT, REFERENCES, TRIGGER, EXECUTE, and USAGE permissions. Handling suggestion: Change or authorize the migration account. | |
| Failure cause: The replication permission is not configured in pg_hba.conf for the replication instance and database user. Handling suggestion: Grant the replication permission to the user. Add the following to pg_hba.conf, and restart the database for the modification to take effect: host replication XXX(dbuser) 0.0.0.0/0 password After the migration is complete, delete this record and restart the database again. | |
| Failure cause: The max_wal_senders value in the source database is too small. Handling suggestion: In the postgresql.conf file, change the max_wal_senders value to a larger one, such as increasing it by 5 or 10. | |
| Failure cause: The database is unavailable. Handling suggestion: Contact Huawei technical support. | |
| Failure cause: Internal error Handling suggestion: Contact Huawei technical support. |
MongoDB Database Migration
| Check Item | Whether the source database user has sufficient permissions |
|---|---|
| Description | Check whether the source database user permissions meet the migration requirements. If the permissions are insufficient, the migration will fail. |
| Failure Cause and Handling Suggestion | Failure cause: This item cannot be checked because the source database fails to be connected. Handling suggestion: Check whether the source database is connected. |
| Failure cause: The source database user must have the read permission on admin and local databases. Handling suggestion: Check whether the source database user permissions meet the migration requirements. | |
| Failure cause: Internal error Handling suggestion: Contact Huawei technical support. |
Oracle Migration
| Check Item | Whether the source database user has sufficient permissions |
|---|---|
| Description | Check whether the source database user permissions meet the migration requirements. If the permissions are insufficient, the migration will fail. |
| Failure Cause and Handling Suggestion | Failure cause: The source database user does not have sufficient permissions. Handling suggestion: Grant the CREATE SESSION, SELECT ANY TRANSACTION, SELECT ANY TABLE, and SELECT ANY DICTIONARY permissions to the user and perform the check again. NOTE: If the destination database is PostgreSQL, the SELECT ANY SEQUENCE permission is also required. |
MySQL -> PostgreSQL Synchronization
| Check Item | Whether the source database user has sufficient permissions |
|---|---|
| Description | Check whether the source database user permissions meet the migration requirements. If the permissions are insufficient, the migration will fail. |
| Failure Cause and Handling Suggestion | Failure cause: The source database user does not have sufficient permissions. During the incremental synchronization, the SELECT permission on INFORMATION_SCHEMA is required. Handling suggestions: Grant the source database user the corresponding permissions. Run the following command: grant select on [dbname]; |
Last Article: Database User Permissions
Next Article: Checking Whether the Destination Database User Has Sufficient Permissions
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.