问题
Problem:
I am using phpmyadmin. I used to access my sql server through web browser. When I using web client. I am facing below problem.
Scenario 1: I have a mysql database with 90+ tables. In that I have a master table. When a row inserted into master table, a trigger will fire and fill the remaining 90+ table.
My Problem is when I import data into master table with 1000 records. It will import only 500+ rows. After some minutes it throws #2006 Mysql Server gone away
error.
Scenario 2: I have another database on that same mysql server. That database have a procedure. That procedure will do delete and insert statement for near by 100 tables.
In this case problem is before completing all the table. server throws #2006 Mysql Server gone away
error.
Tried:
Spitted the 1000 rows into 500's and import into master table. First 500 rows inserted successfully in 5 mins. Second 500 row throws
#2006 Mysql Server gone away
error in 1 mins.set max_allowed_packet = 32M
Checked the
show Variables like 'wait_timeout'
It returns 28800 secs (8 hrs).
How can I resolve this Issue?
Thanks in advance.
Cheers
来源:https://stackoverflow.com/questions/19464939/record-not-inserted-2006-mysql-server-gone-away