Panic: failed to connect to database when loading data

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

Original topic: panic: failed to connect to database when loading data

| username: 会飞的企鹅

[TiDB Usage Environment] Testing
[TiDB Version] 6.5
[Reproduction Path] Conducting TPC-C test on TiDB
[Encountered Problem: Phenomenon and Impact]
[Resource Configuration]
[Attachment: Screenshot/Log/Monitoring]

The above error occurred when importing data. I have already created a database named tpcc in advance, but this error still appears.
How to Conduct TPC-C Test on TiDB | PingCAP Documentation Center
I followed the official test steps. Could the experts please provide assistance?

| username: 胡杨树旁 | Original post link

Try connecting manually to see if it works?

| username: 会飞的企鹅 | Original post link

I can open the tpcc database with Navicat.

| username: magic | Original post link

Can multiple -H hosts be specified? Try writing a single one.

| username: 会飞的企鹅 | Original post link

That’s what it says on the official website.

| username: 会飞的企鹅 | Original post link

I tried it individually, but the same problem persists. Didn’t you encounter this issue during your previous stress tests?

| username: CuteRay | Original post link

Let me ask a few questions. You confirmed that the host is not written incorrectly, and by default, you are using the root user to log in without a password. Is yours the same?

| username: 会飞的企鹅 | Original post link

Thank you very much, so that’s the reason. I was just foolishly copying and pasting step by step according to the official website.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.