THOR Posted October 12, 2011 Share Posted October 12, 2011 Error Code: 2006 - MySQL server has gone awayStart MySQL 5.5 Command Line ClientAt the command prompt, execute the foll. command mysql> show variables like 'max_allowed_packet'; ___________________________ | Variable_name | Value | ___________________________ | max_allowed_packet | 1048576 | ___________________________ 1 row in set (0.00 sec) At the command prompt, execute the foll. command mysql> set global max_allowed_packet = 130 * 1024 * 1024;ExitStart MySQL 5.5 Command Line ClientAt the command prompt, execute the foll. command mysql> show variables like 'max_allowed_packet';_____________________________ | Variable_name | Value | _____________________________ | max_allowed_packet | 136314880 | _____________________________ 1 row in set (0.00 sec) This will set the global max packet size to 130 MB. All subsequent MySQL client connections will get this value as their session value for max packet Now: Source Database : information_schema `GLOBAL_VARIABLES` VALUES ('MAX_ALLOWED_PACKET', '136314880'); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.