Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
Progress
Loops Section Overview

610 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