Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Exporting file for import into MySQL database

Featured Replies

I have a developer working on a shopping cart for me using MySQL and PHP.

I would like to be able to upload the price list but he's a windows guy and he's not sure how to deal with the Mac carriage returns without some major find & replace scripting.

I've been saving as a tab-delimeted text file, but when I upload it comes up with pages of errors, the first of which says that there are too many columns in line 1 (which is not correct), so I assume it just skips over the mac carriage returns.

Because I don't really understand the problem, it's hard to explain it any more than that... any help much appreciated!

Could you identify if the problem is the filemaker record delimiter (CR, Mac/CRLF, WIn) or the FileMaker par.gif character (return within a field?)

The easiest way to export in another character set + adding platform-specific record/field delimiters is via XML export. There is a sample at www.filemaker.com/xslt_library to accomplish this task, (custom delimiters).

You could also use calculations to export the complete sql INSERT command, or do the same with XSL.

http://www.clark-ip.com/docs/FMP_to_mySQL_OSX.html

Hi Jason.

just posted an XSL in Sample files. It writes out the create & insert into table statements for command line.

One could easily make same with calculated fields only, but that doesn't translate between Mac/Win/Unix charsets & linefeeds.

  • Author

Yeah it was the record delimiter... My developer managed to write a little script for 20 that does a find/replace when I upload the new price list, so I'm all set for now.

That link may come in handy in the future as I tighten the integration between my FileMaker database and MySQL-based shopping cart. Thanks for pointing that out.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.