Batch Write Error: FATAL: mysql_drv_query() returned error 2013 (Lost connection to MySQL server during query) for query

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

Original topic: 批量写入报错提示FATAL: mysql_drv_query() returned error 2013 (Lost connection to MySQL server during query) for query

| username: TiDBer_tlPmiOpw

[Test Environment for TiDB]
[TiDB Version]
[Reproduction Path] Use sysbench for testing
sysbench /usr/local/share/sysbench/bulk_insert.lua --mysql-user=root --mysql-password=‘’ --mysql-host=192.168.30.43 --mysql-port=4000 --mysql-db=sysbench_test --tables=5 --table_size=10000000 --threads=32 --time=300 --report-interval=10 run
[Encountered Issue: Problem Phenomenon and Impact] Batch insert error with the message FATAL: mysql_drv_query() returned error 2013 (Lost connection to MySQL server during query) for query
[Resource Configuration] 16c/16g/300G
[Attachments: Screenshots/Logs/Monitoring]

| username: WalterWj | Original post link

Is there any corresponding error information in the tidb.log? :thinking:

| username: 我是咖啡哥 | Original post link

Is it possible that TiDB or TiKV crashed due to pressure? Check the logs to see if there have been any restarts?

| username: system | Original post link

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