Solved

Import db3 files into MySql and keep it in sync

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This guide whil teach how to setup live replication (database mirroring) on 2 servers for backup or other purposes. In our example situation we have this network schema (see atachment). We need to replicate EVERY executed SQL query on server 1 to…
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 …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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