Jump to content
xisto Community
Sign in to follow this  
kenjvalip

How Can I Import Csv Files To My MySQL Database? I was able to export but wheres import?

Recommended Posts

I am having hard times finding that import csv in the mysql phpmyadmin. I once worked on some csv files and someone imported it on the mysql server. I was not able to ask him. Does someone know how can I import csv files in mysql server?

Share this post


Link to post
Share on other sites
How to import Excel filesHow Can I Import Csv Files To My MySQL Database?

How can I import Excel files to my mysql Database?

I was able to export. But how to import?

Please send proper Source code using php

-reply by thams

Share this post


Link to post
Share on other sites
importing csv file in mysql through joomla csv componentHow Can I Import Csv Files To My MySQL Database?

Dear sir

I am getting a problem to importing csv file in mysql through joomla csv component

when I change csv file exported from csv component from joomla and import it through joomla component then having a problem. And I could not upload this file.

when I saved this file then a message has been shown that all you file format will be cancel would you like to save this file ?

I exported this file from joomla component using comma,and record delimeter " .

save it to microsoft csv(comma seperate) extension.

but I am unable to import this csv file .

please if you understands my problem then kindly give me solution and send it to in my mail.

-reply by chandan paul

Share this post


Link to post
Share on other sites
how to import images automatically in mysql using java technology? How Can I Import Csv Files To My MySQL Database?

how to import images automatically in mysql using java technology? sir I'm storing images in one folder I want to import all the images in the database. I knw the manual process how to import but dnt knw how to automatically import the images as they arrive in the folder...

-question by salim mandrekar

Share this post


Link to post
Share on other sites

how to import images automatically in mysql using java technology?

How Can I Import Csv Files To My MySQL Database?

 

how to import images automatically in mysql using java technology? sir I'm storing images in one folder I want to import all the images in the database. I knw the manual process how to import but dnt knw how to automatically import the images as they arrive in the folder...

 

-question by salim mandrekar

If you already know how to do it manually then why not write it in to the script that you are using to upload (assuming you are using php to upload the image). However, if you are not using php to upload I would then suggest using a cron job.

 

A cron job (or scheduled task in windows) is basically a file that is run periodically on your server. Crontab is the application used in *nix to set how often the cron job is run. You can have it run every couple of seconds (not recommended for high traffic servers) or even once a week. What you need to do is create a php file that will write your image to the MySQL database and setup a cron job to run this php document every few minutes (I would suggest five minutes). If you your webhost doesn't support crontab or scheduled tasks then there are plenty of websites offering free cron jobs. All you need to do is sign up to one, enter the url of the php document that will write the image to the database and set how often you want it to run this php document.

 

Hope that helps you!

Share this post


Link to post
Share on other sites

The easier to import csv file was by using phpmyadmin.Just select the database you want to save the new data and click the importtab. From the " Format of imported file" choose CSV.Once completed, click the browse button to select the you need to import tothe database.Be sure to increase the php script timeout value before the import.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.