I got csv file that updates each few seconds and I want to auto import the csv file into the phpmyadmin table.
Those lines, as sql query, does the following, but only once:
TRUNCATE windUpdates;
LOAD DATA LOCAL INFILE "~/www/csvs/wtt.csv" INTO TABLE windUpdates FIELDS TERMINATED BY ',' ;
How can I to run these line automatically every 10 minutes ?
I would simply write simple script that reads the CSV file, generates SQL query per line and then runs it on the mysql server. PhpMyAdmin isn’t needed for that – just few lines of code.
(Not mine blog, and havn’t tested it but this looks like great start point )
Once you have the working script (you can test it and perfect it by accessing it from you browser) you simply set it up in your hosting provider admin panel using bluehosts instructions: