Running MobiLink on Mac OS X

You can run the MobiLink server and the SQL Anywhere MobiLink client on Mac OS X. You cannot run UltraLite on Mac OS X.

To synchronize a MobiLink consolidated database on Mac OS X, you can use the SQL Anywhere ODBC driver as the driver manager. See Creating an ODBC data source (Mac OS X).

 Start the MobiLink server on Mac OS X
  1. Start SyncConsole.

    In the Finder, double-click SyncConsole. The SyncConsole application is located in /Applications/SQLAnywhere12.

  2. Click File » New » MobiLink Server.

  3. Configure the MobiLink server:

    1. In the Connection Parameters field, enter the following string:

      DSN=dsn-name

      The dsn-name is a SQL Anywhere ODBC data source name. For information about creating ODBC data sources, see ODBC data sources.

      If dsn-name has spaces, surround the string with double quotes. For example:

      DSN="SQL Anywhere 12 Demo"
    2. Set options in the Options field, if desired.

      The Options field allows you to control many aspects of MobiLink server behavior. For a complete list of options, see mlsrv12 syntax.

  4. Click Start to start the MobiLink server.

    The database server messages window appears and displays messages, showing that the server is ready to accept synchronization requests.

 Start dbmlsync on Mac OS X
  1. Start SyncConsole.

    In the Finder, double-click SyncConsole. The SyncConsole application is located in /Applications/SQLAnywhere12.

  2. Click File » New » MobiLink Client.

    The client options window appears. It has many configuration options, which correspond to dbmlsync command line options. For a complete listing, see dbmlsync syntax.

    The options on the Login, Database, Network, and Advanced tabs all define the connection from the MobiLink client to the SQL Anywhere remote database. Often, you only need to specify an ODBC data source on the Login tab to connect.

    The options on the DBMLSync tab define aspects of the connection to the MobiLink server. If these features are defined in a remote database publication and subscription, then you can leave the options on this tab empty.

 Run the sample database on Mac OS X
  1. Source the sa_config configuration script.

    For more information, see Unix and Mac OS X environment variables.

  2. Set up an ODBC data source. For example:

    dbdsn -w  "SQL Anywhere 12 Demo" 
    -c "UID=DBA;PWD=sql;DBF=/Applications/SQLAnywhere12/System/demo.db"
  3. Run the MobiLink server. For example:

    mlsrv12 -c "DSN=SQL Anywhere 12 Demo"