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

SAP Sybase SQL Anywhere 16.0 » MobiLink - Getting Started » MobiLink tutorials » Tutorial: Using MobiLink with a SQL Anywhere consolidated database


Lesson 5: Starting the MobiLink server

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


This lesson assumes you have the roles and privileges listed in the Privileges section at the start of this tutorial: Tutorial: Using MobiLink with a SQL Anywhere consolidated database.

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

 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:

    mlsrv16 -c "DSN=SQL Anywhere 16 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.


The MobiLink server is started and connected to the consolidated database.


Proceed to Lesson 6: Synchronizing.