Inserting large file into mysql
From: Eurisko (not_at_home.out)
Date: 03/26/05
- Next message: Andrew _at_ Rockface: "Re: Inserting large file into mysql"
- Previous message: Lüpher Cypher: "Re: session variable"
- Next in thread: Andrew _at_ Rockface: "Re: Inserting large file into mysql"
- Reply: Andrew _at_ Rockface: "Re: Inserting large file into mysql"
- Reply: jorj: "Re: Inserting large file into mysql"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 26 Mar 2005 08:29:19 GMT
Hi
I have a 65 Meg CSV file I need to insert into mysql. I can't use the import functions of mysql because there needs to be a little processing of the data first.
I read the file into an array with file() then go araind the array with a foreach. However I keep getting a segmentation fault after about 17000 lines.
Im using unset to clear all variables and mysql_free_result() to clear some mysql memory.
Can anyone help?
Thanks
- Next message: Andrew _at_ Rockface: "Re: Inserting large file into mysql"
- Previous message: Lüpher Cypher: "Re: session variable"
- Next in thread: Andrew _at_ Rockface: "Re: Inserting large file into mysql"
- Reply: Andrew _at_ Rockface: "Re: Inserting large file into mysql"
- Reply: jorj: "Re: Inserting large file into mysql"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|