Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8579809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:41:25+00:00 2026-06-11T20:41:25+00:00

I got csv file that updates each few seconds and I want to auto

  • 0

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 ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:41:26+00:00Added an answer on June 11, 2026 at 8:41 pm

    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:

    From the cPanel, click the Cron Jobs icon and enter the following into
    the Command field:

    /ramdisk/bin/php5 -c /home/USERNAME/PathTo/php.ini
    /home/USERNAME/public_html/PathToFile You may also want to adjust the
    settings specifying when to run the cron job. Note: You will need to
    replace USERNAME with your user ID and PathToFile with the file name
    or the rest of the path to the file.

    Note: You may need to adjust /home/ to /home#/ depending on the home
    directory your account resides on. To view the home directory for your
    account simply view the stats column on the main cPanel page of your
    account and look for the home directory.

    Note: To specify the php.ini file to use you may add “-c
    /home/USERNAME/PathTo/php.ini” to the cron job entry.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a CSV file that looks like: 1,3,3,5,4,5,5 Now I want to change
I've got a simple web-page that generates a CSV file that I want the
I've got some large csv files that I need to import into IEnumerable (prob
I've got a CSV file that I'm processing using the opencsv library. So I
I've got a CSV file with a format that looks like this: FieldName1, FieldName2,
I've got a script that reads in from a CSV file and sometimes the
I've got a bunch of csv files that I'm reading into R and including
I've got a CSV file that contains multiple data chunkds: Alice Age,Weight,Height 20y,50kg,170cm Bob
I've got a CSV file that looks like this: id, name 0, A.D. TRAMONTANA
I've got some csv-files that I need to import to our system using php.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.