Error in DM Synchronization

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: dm同步出错

| username: wisdom

【TiDB Usage Environment】Production\Test Environment\POC
【TiDB Version】
【Encountered Problem】
【Reproduction Path】What operations were performed to cause the problem
【Problem Phenomenon and Impact】

  • Relevant logs, configuration files, Grafana monitoring (
  • TiUP Cluster Display information
  • TiUP Cluster Edit config information
  • TiDB-Overview monitoring
  • Corresponding module’s Grafana monitoring (if any, such as BR, TiDB-binlog, TiCDC, etc.)
  • Corresponding module logs (including logs from 1 hour before and after the problem)

“Message”: "mydumper/dumpling runs with error, with output (may be empty): ",
“RawCause”: “sql: FLUSH TABLES WITH READ LOCK: Error 1045: Access denied for user ‘root’@‘%’ (using password: YES)”,

If the question is related to performance optimization or troubleshooting, please download the script and run it. Please select all and copy-paste the terminal output results and upload them.

| username: ShawnYan | Original post link

Test environment, right? The password is incorrect.

| username: notebook385 | Original post link

The password is probably incorrect, or it contains special characters.

| username: db_user | Original post link

Incorrect password or permissions. Is the upstream a cloud database? Can you execute the flush tables command?

| username: cheng | Original post link

Check if your DM account does not have the “flush table with read lock” permission.

| username: buchuitoudegou | Original post link

It can be confirmed that it is a permissions issue because some precheck operations are performed using the provided username and password before exporting. Before the actual export (i.e., before the SQL in the image), Dumpling will attempt to connect to the database. If the username or password is incorrect, an error will be reported at that time.

| username: wisdom | Original post link

Unified reply, it is not caused by incorrect password or insufficient permissions.

| username: buchuitoudegou | Original post link

Could you please explain in detail? This way, other students who encounter the same situation will also know how to solve it. :pray:

| username: system | Original post link

This topic will be automatically closed 60 days after the last reply. No new replies are allowed.