Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

auto-import data every hour


c1sc0

Recommended Posts

Posted

Hi,

 

I need to do a scheduled import into the MySQL database, about every hour or so. ? 6000 records (products + clients). I wrote a simple routine that dumps the data from the source data server (4D - www.4d.com) into flat-text files.

 

I see two options:

 

1) Generate a .sql file from the flat-text with e.g. Perl and import data with the .sql, overwriting all existing data using a scheduled shell/perl script

2) Go fancy and write a Perl script that connects to MySQL directly and inserts/updates the data.

 

Recommendations? Ideas? I'm running OSX Jaguar.

 

Seeya - Cisco

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...