MySQL server has gone away

Status
Not open for further replies.

liguehs

New Member
Messages
62
Reaction score
0
Points
0
Hi,

I have a mysql Code that enters almost 3 500 entries,

but when I reach around 500 I get :
Cannot inset/update table!MySQL server has gone away

Has this has nothing to do with my programming problem, was wondering what should I do?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Hi,

I have a mysql Code that enters almost 3 500 entries,

but when I reach around 500 I get :

Has this has nothing to do with my programming problem, was wondering what should I do?

Split the input into nine 400 entry chunks and do them one at a time.

Especially if your table has multiple indices, data entry can be bog down and you come up against timeouts.

Another option would be drop the indices, enter the data, and then add the indices one by one using ALTER TABLE
 

liguehs

New Member
Messages
62
Reaction score
0
Points
0
I cant find my .htaccess file.....

I used filezilla, its not here, I used the 2 file manager and still cant find it....
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Why are you looking for your .htaccess file for? The solution to use would be descalzo's.
 

jamessmith

New Member
Messages
59
Reaction score
0
Points
0
That just basically means MySQL has dropped the connection, perhaps by a socket error, or hard time out?
 
Status
Not open for further replies.
Top