?
Solved

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

Posted on 2007-03-19
2
Medium Priority
?
1,096 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 1000 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 1000 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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

765 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