Search This Blog

Showing posts with label phpMyAdmin. Show all posts
Showing posts with label phpMyAdmin. Show all posts

Wednesday, May 9, 2012

Import database error. phpMyAdmin.

"Got a packet bigger than 'max_allowed_packet' bytes"


To resolve this issue, you need to add or edit line in my.cnf file.

cd /etc
vi my.cnf
under [mysqld] add following:

max_allowed_packet=5M

Save and quit from your editor and restart mysql.
/etc/init.d/mysql restart
Try to import db again.