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 mlsrv.mls -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

    -c

    Precedes the connection string.

    -o

    Specifies the message log file mlsrv.mls.

    -v+

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

    -dl

    Displays all log messages on screen.

    -zf

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

    -zu+

    Adds new users automatically.

    -x

    Sets the communications protocol and parameters for MobiLink clients.

    Note

    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.