0

Possible Duplicate:
MySQL Error 1153 - Got a packet bigger than ‘max_allowed_packet’ bytes

I have the .sql file which size is 26.3 MB and containing large data.

I am trying to import it via command line by using this command :

mysql -uroot -p dbname < /path/to/file.sql

But it's showing following error while importing

ERROR 1153 (08S01) at line 1: Got a packet bigger than 'max_allowed_packet' bytes

Is it the problem of size or if not then what is the problem?

Thanks

Community
  • 1
  • 1
J.K.A.
  • 7,272
  • 25
  • 94
  • 163
  • 1
    try editing the mysql config file (mysqld.ini i think) and raise the value of max_allowed_paket. The size of the .sql shouldn't be the problem because it's not all loaded at once, but the way it's created. – Matei Suica Oct 12 '12 at 05:31
  • 1
    see [MySQL Error 1153 - Got a packet bigger than 'max_allowed_packet' bytes](http://stackoverflow.com/questions/93128/mysql-error-1153-got-a-packet-bigger-than-max-allowed-packet-bytes) – Quicksilver Oct 12 '12 at 05:32

1 Answers1

3

in mysql prompt, issue these commands:

        set global net_buffer_length=100000000; 
        set global max_allowed_packet=10000000000;

run your command mysql -uroot -p dbname < /path/to/file.sql

in another terminal

solaimuruganv
  • 27,177
  • 1
  • 18
  • 23