954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Automate CSV file import to MYSQL

Hello.
I have a MYSQL database and I receive CSV files throughout the day.
At present I have to open up my database and import the CSV file.

Is there a exe file that can run so the CSV file can be imported as and when it arrives on the server pc?

for example, the CSV file will land in C:\CSV

Thanks
Paul.

swanside
Newbie Poster
4 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

I think you should look at the LOAD DATA INFILE docs and cron a script to import for you

pty
Posting Pro
530 posts since Oct 2005
Reputation Points: 64
Solved Threads: 39
 

Thanks I will have a look at that.
Can you run CRON jobs on server 2003 or do you need some extra softwear to run it?
Thanks

swanside
Newbie Poster
4 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 
Thanks I will have a look at that. Can you run CRON jobs on server 2003 or do you need some extra softwear to run it? Thanks

Sorry didn't realise your server was Windows. I'm not an expert on Windows but I'm sure you could use a scheduled task in cron's place.

pty
Posting Pro
530 posts since Oct 2005
Reputation Points: 64
Solved Threads: 39
 

OK. Thanks again, I will have a look at that and see what I can do.

swanside
Newbie Poster
4 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You