Record Not Inserted - #2006 Mysql server gone away

心已入冬 提交于 2019-12-11 14:57:33

问题


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:

  1. 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.

  2. set max_allowed_packet = 32M

  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!