Navicat 导入数据报错 --- 1153 - Got a packet bigger than 'max_allowed_packet' bytes

以MariaDB为例在linux或mac中

在/etc/my.cnf 或者 /etc/my.cnf.d/server.cnf中修改一下内容

1
2
3
[mysqld]

max_allowed_packet = 10M

之后重启mysql

1
systemctl restart mariadb