Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Import db3 files into MySql and keep it in sync

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

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Recursive SQL is one of the most fascinating and powerful and yet dangerous feature offered in many modern databases today using a Common Table Expression (CTE) first introduced in the ANSI SQL 99 standard. The first implementations of CTE began ap…
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 Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

916 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