When using bench tpch to prepare data, it prompts cannot connect to the database

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

Original topic: 使用bench tpch准备数据时,提示cannot connect to the database

| username: Usr_xiaohe

[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
When preparing data using bench tpch, it prompts “cannot connect to the database”. The TiDB cluster has already started, and the client tool can connect and use the functions.

| username: zhanggame1 | Original post link

Here’s a reference for my tpcc test:

tiup bench tpcc prepare --warehouses 4 --db test -H -P 4000 -U root -p XXXXX

Make sure to include the complete username, password, host, and port.

Official documentation:

| username: Usr_xiaohe | Original post link

Thank you, thank you.

| username: redgame | Original post link

Can you share the configuration and results after testing for reference?