tencent cloud

All product documents
Data Transfer Service
Account Conflict Check
Last updated: 2024-07-08 18:38:11
Account Conflict Check
Last updated: 2024-07-08 18:38:11

Check Details

Check whether the target database user conflicts with the source database user in a data migration scenario.

Troubleshooting

In full database migration, if the target database has the same account as that in the source database, you need to delete it.
If the account in the target database is the initial account, use it to log in to the database and run the following statements:
CREATE USER new user WITH PASSWORD 'password';
GRANT pg_tencentdb_superuser TO new username;
ALTER USER new user WITH CREATEDB;
ALTER USER new user WITH CREATEROLE;
If the account in the target database is a new user, use it to log in to the database and delete the conflicting user.
DROP USER conflicting user;
# If the conflicting user has resource dependencies, run the following statement to modify the owner of the resources first (with a table as an example below):
ALTER TABLE table name OWNER TO new user;
After the conflicting user is deleted, run the verification task again.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon