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

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top