Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8320 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I need to recreatea database done in FM in MySQL. Any way I can export the structure so I don't have retype all the field names and such.

[ February 04, 2002, 10:50 AM: Message edited by: signal ]

Posted

Don't know much about SQl, but you may have a couple of options:

DBF format is tab-delimited, with the first line being the fieldnames.

MERGE format is the same, but comma-delimited, so the data is enclosed in quotation marks to avoid confusion when fields contain commas in them.

HTH,

Dan

Posted

Best way to export the field structure I found was to create a calculation field along the lines of the MySQL 'create table' syntax. Using it this way you can check for the maximum lengths of fields in Filemaker and thus you know how long to specify any VARCHAR fields for the MySQL database. You can then just copy the calculation and paste it into a MySQL query in PHPMyAdmin etc., or upload a text file of the calculation.

Posted

This is sort of universal solution I made few months ago.

FM Developper came with JDBC driver example which you can pull out the database structure using web campinion. I just reused it with MySQL JDBC driver to recreate same DB in MySQL including index options!

Unfortunately i can't give you source code because my company owns it. But if you know java - this is almost next to nothing.

Java kicks arse!

This topic is 8320 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.