Frage

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

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top