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.
Prerequisites
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.
At a command prompt, change to the c:\mlsqla directory.
Connect to your consolidated database by running the following command:
mlsrv16 -c "DSN=SQL Anywhere 16 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. |
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.
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |