ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: scrivocmdivo on March 20, 2011, 03:50:11 PM

Title: Outputting to a MySql DB
Post by: scrivocmdivo on March 20, 2011, 03:50:11 PM
Has anybody had any joy outputting the results of ExifTool to a MySql DB? I am looking at scanning thousands of images and I'd prefer for the results to be written to a MySql DB.

Any suggestions?
Title: Re: Outputting to a MySql DB
Post by: Phil Harvey on March 20, 2011, 05:40:20 PM
Reading FAQ number 12 (https://exiftool.org/faq.html#Q12) may help.  It discusses techniques to use exiftool to export information to a database.

- Phil
Title: Re: Outputting to a MySql DB
Post by: Mauricio Villablanca on March 23, 2011, 06:50:57 PM
I wrote a PHP script that calls exiftool with -j option (json string) on the server. The script parses the json and adds the elements to a SQL Server database.

To automate the process, I wrote a windows service that runs the PHP script at a given interval.

It's slow but it works.