Solved

Import db3 files into MySql and keep it in sync

Posted on 2004-08-17
2
1,992 Views
Last Modified: 2008-01-09
How can I import a set of db3 files into my sql and keep it in sync so as to use mysql for evaluating information
0
Comment
Question by:dumontls
2 Comments
 
LVL 7

Accepted Solution

by:
petoskey-001 earned 100 total points
ID: 11877833
Hi. I'm surprised no one answered this yet.  Let me try and help you.

There is no native programs that can import db3 file directly into mysql.  Also syncing data in mysql and another program isn't possible at the database layer unless your clustering with other mysql servers.

To import your data into mysql, you first need to first export it out of db3 into a text file of some sort.  Comma or tab delimited would work best.  Then use mysqlimport or load data infile to import it into mysql.  

I'm not sure what you mean by keeping the data in sync.  If you mean making sure the data has been written to disk, that's usually done automatically and not something you have to bother with.  The command you would use is "flush" command I believe and you need RELOAD privileges on the database. If you mean keep the db3 database and the mysql database data up to date with changes, that is not possible automatically.

If I were going to attempt it, I would probably use PHP to read data from the db3 tables and insert it into mysql, or create ODBC links between the two databases and copy the data.  I know very little about db3 though, so I couldn't tell you how to do it.

Here are some links to help you...

mysqlimport utility
http://dev.mysql.com/doc/mysql/en/mysqlimport.html

LOAD DATA Infile
http://dev.mysql.com/doc/mysql/en/LOAD_DATA.html

Flush comman
http://dev.mysql.com/doc/mysql/en/FLUSH.html

0
 

Author Comment

by:dumontls
ID: 11879017
petoskey

I didnt think its possible either but then again with puters I think nothing is impossible. at work we use a dbase3/4 inventory systems however I have been reading the db3 files with excel and transposing dat into my ordering systems. i recently started using MSQuery and VBA with Excel and this has proved alot faster and error free. Hence the question.

I am too deep int the later method to rty mySQL and will drop this idea for the time being anyway you have answered my question and confirmed my own thinking and I am glad
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

A lot of articles have been written on splitting mysqldump and grabbing the required tables. A long while back, when Shlomi (http://code.openark.org/blog/mysql/on-restoring-a-single-table-from-mysqldump) had suggested a “sed” way, I actually shell …
All XML, All the Time; More Fun MySQL Tidbits – Dynamically Generate XML via Stored Procedure in MySQL Extensible Markup Language (XML) and database systems, a marriage we are seeing more and more of.  So the topics of parsing and manipulating XM…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now