LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-21-2006, 12:33 AM   #1
penfoldTHIS
LQ Newbie
 
Registered: Mar 2006
Location: Arkansas,US
Distribution: Slackware 12.1
Posts: 7

Rep: Reputation: 0
FilePro to MySQL DB conversion.


Ok,

I've really got myself into a situation here. I have been selected to do a DB conversion from FilePro(not FileMaker pro) on SCO Unix to MySQL on SUSE 10. Now, it's incredibly easy to just "od -c key > blah", it gives me something that can be read, but with a huge database, editing each line by hand is extremely challenging and would take weeks. I have heared of some people who have done this conversion successfully with php, but no one will reply anywhere I post. If anyone has any tips or maybe even a script to handle this, please let me know. Also, i'm trying to do all this without actually installing the mess of filepro. Thanks in advance

J.W.
 
Old 07-21-2006, 12:44 AM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
I've done a lot of data base conversions, and it always came down to dumping the original DB tables to text files, then using utilities from the new DB to populate tables. Very intensive, but not very difficult.

I may be that someone can provide you with a script to automate portions of the data transfer, but if it was me, I'd start "shoveling."
 
Old 07-21-2006, 01:14 AM   #3
penfoldTHIS
LQ Newbie
 
Registered: Mar 2006
Location: Arkansas,US
Distribution: Slackware 12.1
Posts: 7

Original Poster
Rep: Reputation: 0
hmmm..

I know, i've been digging at it for a while. This is a sample of what i'm getting from od -c

~~
0000000 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
0000020 \0 \0 \0 \0 \0
0000040
*
0000200 001
0000220 \0 032 \v \0 \0 Ô 022 Ê \0 ¢ 037 \0 \0 \0 \0 \0
0000240 \0 \0 \0 9 8 6 3 3 J
0000260 A C K B U R N E
0000300 Y
~~

etc etc...

Like I said this helps, but i'm not the best at grepping | regular expressions to get all of this into a comma-delimited file.
Now, all this is coming from the KEY file. I don't have the data and map files, but i'm sure it's needed.

J.W.
 
Old 07-21-2006, 01:28 AM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
I don't have the data and map files, but i'm sure it's needed.
That's an impossible situation unless you know the data intimately. I know neither FilePro nor MySQL well enough to be much specific help, but you HAVE to have data dictionaries for the files. Is this an actively used database with reports and input applications. I assume FilePro has a "report generator" of some kind that you can just write "reports" which would include each field from a table; but you need the data dictionary to know exactly what fields are there.

I don't think that utilities like grep are going to be much help in sorting thru a proprietary database table. They have a vested interest in making it difficult to convert.

Are you going to also provide the user interface to add new data to the MySQL DB?

Good luck.
 
Old 07-21-2006, 02:59 AM   #5
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
I don't know filepro but a quick google gave the following link.
 
Old 07-21-2006, 10:09 AM   #6
penfoldTHIS
LQ Newbie
 
Registered: Mar 2006
Location: Arkansas,US
Distribution: Slackware 12.1
Posts: 7

Original Poster
Rep: Reputation: 0
I think the best option at this point is start hacking with php and the read-only file support provided with all of the key, data, map files.

Quote:
Are you going to also provide the user interface to add new data to the MySQL DB?
If your suggesting new user interfaces for the existing system, no. I will have to modify the existing interaction, but other than that, no.
 
Old 08-01-2006, 07:34 PM   #7
dkblinux98
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Rep: Reputation: 0
I've actually written an application in php and shell scripts that converts filepro data into mysql data using the map, key and data files only, no proprietary filepro code. I would be happy to assist you with this project. I have used it now on many filepro conversion projects. I'm hoping to get it to a point where I can offer it to the community. But right now it is still in "beta" format.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
MS-SQL to MySQL Conversion Tools naeric Programming 1 10-12-2003 05:36 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration