1

I am new in using MySQL database and need some help. The scenario is pretty much like this: I collect data from some sensor which come with their own software. The software builds a .db file as it takes data from the sensors and saves it locally in the computer.

My problem is to collect this data from the .db file and input it into a MySQL database with a certain frequency.

Is it possible to create a script that updates the MySQL database with .db files (lets say every 5 secs)? Can you provide some direction on what to use?

link for the db file: http://www.filedropper.com/file_45

9
  • 3
    what is the format of the .db file? IS it like CSV? Commented Feb 15, 2013 at 18:23
  • I believe it is in the same format as CSV Commented Feb 15, 2013 at 18:42
  • Please include some of the .db file so that the format may be inspected Commented Feb 15, 2013 at 19:53
  • it will be something like this in the link monnit.com/images/sensor-data/Vehicle-Profile-1-Data.jpg Commented Feb 15, 2013 at 20:55
  • I dont have an actual .db file. I asked for it and once i have it I will post it here. But i am pretty sure should be something like the one i posted above. thnx Commented Feb 17, 2013 at 0:28

1 Answer 1

3

you can use cron for Linux or Scheduler for Windows.

EDIT:

For the File you uploaded, you need to install SQLite. Check this for the command line access to the data.

You might want to check this out if you want to make a web interface for your system.

Sign up to request clarification or add additional context in comments.

5 Comments

I have never used cron before. I am using myPhp admin to create database. Do you see any way cron can come into help? Can it be set up into a frequency. Also, the program that comes with sensors doesnt support linux
Read the link from "cron". What is your environment?
I am using windows XP (can use 7 as well). Linux is not an option because the program that collects the sensor data does not run on Linux.
then you can use the windows scheduler with a .bat script... I would use autohotkey in your position... or c++ if it was for a customer that should not see the code that inserts into the db (that has the password and all)
@a_el Was the answer useful?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.