Solved

Any software to convert text files into SQL database automatically??

Posted on 2007-03-19
2
1,091 Views
Last Modified: 2013-11-13
I'm looking for a C++ script or any 3rd party software that converts delimited text files into a MySQL database, preferably to run as a scheduled service or daemon. I would like it to map out the file columns to several tables (a web interface would be nice too). Does anybody know of anything like this?
0
Comment
Question by:bemara57
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
joexzhu earned 250 total points
ID: 18753607
Perl fits the best in your situation. You can write a very simple
perl script to do the job. Perl can handle regular expressions
and database connections. If you show me your data,
I can write a script for you.
0
 
LVL 2

Assisted Solution

by:faz136
faz136 earned 250 total points
ID: 18753687
MySQL does that natively:

LOAD DATA LOCAL INFILE '/filename.xxx'
INTO TABLE tablename
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'
(field1, filed2, field3);

or using the bundled mysqlimport utility:
mysqlimport -L -hHOSTNAME -uUSER -pPASSWORD DATABASE TEXTFILE
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Make the most of your online learning experience.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Progress

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question