If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL script and cvs file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-18-03, 09:54
avanti avanti is offline
Registered User
 
Join Date: Nov 2003
Posts: 2
MySQL script and cvs file

Hi,

I want to create a script that will import a cvs file into a mysql database, I wanted to this autmatically.

Does anyone has a sample script or good sites where I could find these scripts.

Thanks in advance,

Avanti
Reply With Quote
  #2 (permalink)  
Old 11-18-03, 09:56
avanti avanti is offline
Registered User
 
Join Date: Nov 2003
Posts: 2
Addon

Hi,

I forgot to mention my operating systeem.

I'm using:

FreeBSD 4.9
Apache (webserver)
PHP
IMAP
Sendmail
HORDE/IMP
Reply With Quote
  #3 (permalink)  
Old 11-21-03, 04:39
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
You can create a simple sql file that use load data to import your file
And just run this script in a cron job

If you need to know how to use load data
see

http://www.lasso-developpeur.net/us/...tab=db&lang=us
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #4 (permalink)  
Old 11-22-03, 11:58
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
Re: Addon

Quote:
Originally posted by avanti
Hi,

I forgot to mention my operating systeem.

I'm using:

FreeBSD 4.9
Apache (webserver)
PHP
IMAP
Sendmail
HORDE/IMP
You also could use the plain text or csv files and import by LOAD DATA INFILE
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On