?
Solved

Import db3 files into MySql and keep it in sync

Posted on 2004-08-17
2
Medium Priority
?
2,106 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
[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
 
LVL 7

Accepted Solution

by:
petoskey-001 earned 300 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

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 …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

719 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