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
[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]