March 17, 200917 yr Hi, i got an XML about 420 mb in size , i need to import it into my database, ive done a little script that does that, but here is the problem, there are about 500.000 records in it! How can i stick all that into Database? is it possible to split XML somehow or any other method?
March 17, 200917 yr MySQL INFILE will do it. You may need to install a mysql XML parser first though.
March 17, 200917 yr To make sure that MySQL can do this quickly and efficiently, you should also have your file in a directory on the server before processing it.
March 17, 200917 yr Author Uploaded a file smaller one about 150 mb, contains 99.000 records, run my script page was loading for about 10 mins than it said done, but only 15000 records were inserted, it would be nice to install MySQL XML parser but i am on shared hosting unfortunatelly so no chance, plus XML file and MySQL databse have differen names for tables
March 17, 200917 yr I have imported a file close to 1GB before using DBACentral and I had no problems. It took a while and looked like it wasn't responding but it imported everything OK. http://www.microolap.com/products/database/mydbacentral/ I hope this helps, I don't think you will need to split the file.
March 17, 200917 yr use bigdump. iv used it lots in the past, it lets you insert a certain number of lines at a time. http://www.ozerov.de/bigdump.php its completely free.
Create an account or sign in to comment