1. When running the SQL file, an error is reported:[ERR]2013 – Lost Connection to MySQL Server During During Query, as shown in Figure 1
[错误]2013 – Loss of connection to mysql server during query
![运行 SQL 文件时,报错:[ERR] 2013 - Lost connection to MySQL server during query](https://www.shuijingwanwq.com/wp-content/uploads/2017/08/1-3.png)

3. Change max_allowed_packet=4m to max_allowed_packet=256m, as shown in Figure 3

4. Stop the MySQL server, as shown in Figure 4

5. Run the MySQL server, as shown in Figure 5

6. Run the SQL file again, the encoding is selected: 65001 (UTF-8), as shown in Figure 6

7. The operation is successful, and there is no error, as shown in Figure 7

Leave a Reply