报错呢内容:
ERROR 1153 (08S01) at line 3428: Got a packet bigger than 'max_allowed_packet' bytes
设置最大导入限制(我的文件是40G,旧设置成50G)
set global max_allowed_packet = 50*1024*1024*1024;
然后使用命令导入:
mysql -h 192.168.43.199 -P 3306 -u root -p rules < ./law20230508.sql