best way to export 4 fields from a mysql db every 15 minute

We have a mysql database with a user file, the table stores about 12 items per user. We want to export to a csv (4 items only) and drop to a selective folder. Then rerun  the script again ( every 15 minutes) with only adding new users since the last run time.

Any idea's

Thanks,
Lowell SwitzerCTO / Systems EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Guy Hengel [angelIII / a3]Billing EngineerCommented:
ok, what is the problem here?
running every 15 minutes? => scheduler application exist on any OS (windows => Scheduled Tasks, unix/linux => cron)
running the sql and dump to file => mysql can run a INTO OUTFILE syntax : https://dev.mysql.com/doc/refman/5.1/en/select-into.html
running the sql from the command line (os script) is built-in into mysql: http://dev.mysql.com/doc/refman/5.6/en/mysql.html

a small tutorial:
http://www.mysqltutorial.org/mysql-export-table-to-csv/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.