Solved

Import db3 files into MySql and keep it in sync

Posted on 2004-08-17
2
2,052 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

749 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