Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » MobiLink - Getting Started » Introducing MobiLink Synchronization

Security Next Page

Running MobiLink 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 on Mac OS X.

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

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

  2. Choose File > New > MobiLink Server.

    A server options dialog appears.

  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 on creating ODBC data sources, see Setting environment variables on Unix and Mac OS X.

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

      dsn="SQL Anywhere 10 Demo"
    2. Leave the Options field empty.

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

  4. Start the MobiLink server.

    Click Start to start the server. The Server Messages window appears and displays messages, showing that the server is ready to accept synchronization requests.

To start dbmlsync on Mac OS X
  1. Start SyncConsole.

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

  2. Choose File > New > MobiLink Client.

    A client options dialog appears.

    The options dialog 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. In many cases, 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.

  3. To run the sample database on Mac OS X
    1. Source the sa_config configuration script.

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

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

      dbdsn -w  "SQL Anywhere 10 Demo" 
      -c "uid=DBA;pwd=sql;dbf=/Applications/SQLAnywhere10/System/demo.db"
    3. Run the MobiLink server. For example:

      dbmlsrv10 -c "dsn=SQL Anywhere 10 Demo"