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

SQL Anywhere 12.0.1 » MobiLink - Getting Started » MobiLink tutorials » Tutorial: Using MobiLink with a SQL Anywhere consolidated database


Lesson 5: Starting the MobiLink server

This lesson assumes you have completed all preceding lessons. See Lesson 1: Designing the schemas.

In this lesson, you start the MobiLink server using the mlsrv12 -c option to connect to your consolidated database. You can use additional options to configure MobiLink server behavior.

 Start the MobiLink server
  1. At a command prompt, change to the c:\mlsqla directory.

  2. Connect to your consolidated database by running the following command:

    mlsrv12 -c "DSN=SQL Anywhere 12 Demo" -o -v+ -dl -zf -zu+ -x tcpip

    The MobiLink server messages window appears.

    Below is a description of each MobiLink server option used in this tutorial. The options -o, -v, and -dl provide debugging and troubleshooting information. Using these logging options is appropriate in a development environment. For performance reasons, -v and -dl are typically not used in production environments. For a complete list of MobiLink server options, see MobiLink server options.

    Option Description


    Precedes the connection string.


    Specifies the message log file


    Specifies what information is logged. Using -v+ sets maximum verbose logging.


    Displays all log messages on screen.


    Causes the MobiLink server to check for script changes at the beginning of each synchronization.


    Adds new users automatically.


    Sets the communications protocol and parameters for MobiLink clients.


    The -zf and -zu+ options should be used for debugging and development purposes only. This tutorial requires the -zf option so that you do not need to shut down the server when adding new scripts to the consolidated database in a later lesson. The -zu+ option automatically adds new MobiLink users to the synchronization environment.

  3. Proceed to Lesson 6: Synchronizing.