Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL server has gone execute large script files

Please help me to get rid of this errors While i run some large number of mysql scripts at once i got this kind of errors

ERROR: 2006 MySQL server has gone away Error: 1153 Got a packet bigger than 'max_allowed_packet' bytes

How to get rid of this error, im using Navicat mysql and WAMP server?? In running scripts i choose continue on error so scripts still running with error msgs and values in Message log. Will this work and can i run the error values later??

like image 852
thechoosenone Avatar asked Feb 23 '26 07:02

thechoosenone


1 Answers

try using these commands from mysql terminal

set global max_allowed_packet=1000000000; 
set global net_buffer_length=1000000; 
like image 87
ayush Avatar answered Feb 25 '26 21:02

ayush



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!