1You probably have to change it for both the client (you are running to do the 
2import) AND the daemon mysqld that is running and accepting the import.
3
4For the client, you can specify it on the command line:
5	mysql --max_allowed_packet=100M -u root -p database < dump.sql
6
7Also, change the my.cnf or my.ini file under the mysqld section and set:
8	max_allowed_packet=100M
9
10or you could run these commands in a MySQL console connected to that same 
11server:
12	set global net_buffer_length=1000000; 
13	set global max_allowed_packet=1000000000;
14
15(Use a very large value for the packet size.)1run this command in your mysql console.
2
3set global net_buffer_length=1000000; 
4set global max_allowed_packet=1000000000;
51for linux user's -> using lampp
2->goto  opt/lampp/etc/my.cnf ----- and change the below vales accordingly
3max_allowed_packet=1000
4innodb_log_file_size = 50M