Would it be possible to have an Arduino write directly to a MySQL database?
I'm a web programmer, so I'm familiar with how to get records from a MySQL database. I have MAMP installed on my mac, so I have the ability to build an interface, directly in the web browser, that retrives the records from a MySQL database.
What I'm thinking is to connect the Arduino directly to my computer via USB, and write data from the sensors, or the pins, directly to my MySQL database.
I'm using two phototransistor to record whenever something blocks the light. Each sensor records individually a timestamp for when the blocking occur.
Is that possible?