Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Import Huge ammount of data into MySQL using PHP

Featured Replies

Hi, i got an XML about 420 mb in size :o , 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 :o records in it! How can i stick all that into Database? is it possible to split XML somehow or any other method?

MySQL INFILE will do it.

 

You may need to install a mysql XML parser first though.

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.

  • 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

  • Author

Is there a way to split XML file by parameter using PHP?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.