When I runed a 32M database file in phpmyadmin, I got this error in the screen.

#1153 - Got a packet bigger than 'max_allowed_packet' bytes

 

There is a good way to fix this problem. Open the my.cnf file in the mysql install path. (Because I install the lampp, so I just modify this file /opt/lampp/etc/my.cnf)

change the lines:

max_allowed_packet = 128M #as much as you want.

 

And then, remember to restart the mysql server.

 

Have fun :)

相关文章:

  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-13
  • 2021-08-06
  • 2021-05-20
  • 2022-12-23
  • 2021-12-06
  • 2021-07-19
  • 2021-07-14
相关资源
相似解决方案