I am getting following error, when I try to import MYSQL database:
Error Code: 2013 - Lost connection to MySQL server during queryQuery:
Error Code: 2006 - MySQL server has gone away
Can someone let me know what is wrong?
I am getting following error, when I try to import MYSQL database:
Error Code: 2013 - Lost connection to MySQL server during queryQuery:
Error Code: 2006 - MySQL server has gone away
Can someone let me know what is wrong?
Here you can read more about this error and various ways to avoid/solve it
From the docs:
Show your mySql Variables
show variables like 'max%'
set global max_allowed_packet={PacketRANGE}; // like this 10485760;
show global variables like 'max_all%';
Enjoy Your Coding here
Here's an alternative to editing
my.cnf
file. You can set the MySQL global variables value via logging into the MySQL server.You can check the list of all the MySQL Global Variables and their values with the following command:
You can also check for these variables value by first logging into MySQL server:
To check specific variable value:
Now, when you again login to MySQL and check for the
max_allowed_packet
value, you should see the updated value.I tried all the solutions and nothing worked
I use the workbench to remotely connect hostgator
I realized that mysql server hostgator was the 5.5 version and in my workbench is set up to version 5.6
when I set the workbench to 5.5 he started to work
edit/preferences/mysql/default target version
AS mentioned by Tudor in his reaction:
You need to change the maximum execution time and size you can use the following commands to do so:
They are sql commands so you can execute them like noramal commands.