mydumper

./mydumper -h 127.0.0.1 -u root -p -P 4000 -B xxxx -T xxxx -o /tmp
** (mydumper:28818): WARNING **: 09:54:18.202: Failed to connect to ip: 127.0.0.1 error: Can’t connect to MySQL server on ‘127.0.0.1’ (111)

** (mydumper:28818): CRITICAL **: 09:54:18.202: Error connecting to database: Can’t connect to MySQL server on ‘127.0.0.1’ (111)

你好,报错已经很清晰了,连接不上 MySQL,建议你手动尝试登陆下。另外 mydumper 目前已经不在维护,建议使用 dumpling
https://docs.pingcap.com/zh/tidb/stable/dumpling-overview