February 4, 200223 yr 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 ]
February 4, 200223 yr 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
February 12, 200223 yr 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.
February 13, 200223 yr 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!
February 13, 200223 yr Will FM 5.5 on OS X recognize unixODBC? [ February 27, 2002, 10:48 AM: Message edited by: Julian Taylor ]
Create an account or sign in to comment