Navicat imports 15G data and reports an error [2013 - Lost connection to MySQL server during query] [1153: Got a packet bigger]

Recently, a project imported 15G data (30w+ items) and just started to run 20w+ errors. Check the error report as follows:
insert image description here

【2013 - Lost connection to MySQL server during query】
【mysql:1153 Got a packet bigger than ‘max_allowed_packet’ bytes】

Final solution:

  1. right click on edit link
    insert image description here
  2. Click Advanced, and then modify it to the picture below. The suggestion is the same as mine. The best location is on the D drive
    insert image description here
    . After setting, it ran for 30 minutes, and finally it was ok

insert image description here

Then, I tried other methods but they didn't work out, including
solution 1
and solution 2

Guess you like

Origin blog.csdn.net/chandfy/article/details/125610419