This lesson assumes you have completed all preceding lessons. See Lesson 1: Setting up a MobiLink consolidated database.
In this lesson, you start the MobiLink server using the mlsrv12 -c option to connect to your consolidated database. You use additional options to configure MobiLink server behavior.
At a command prompt, change to the c:\MLintro\ directory.
Connect to your consolidated database by running the following command:
mlsrv12 -c "DSN=mlintro_consdb" -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 |
Specifies the connection string to the consolidated database. |
-o |
Specifies the message log file mlsrv.mls. |
-v+ |
Specifies what information is logged. Using -v+ sets maximum verbose logging. |
-zf |
Causes the MobiLink server to check for script changes at the beginning of each synchronization. |
-dl |
Displays all log messages in the messages window. |
-zu+ |
Adds new users automatically. |
-x |
Sets the communications protocol for the MobiLink server, indicating which port to listen on and what network protocol to expect from MobiLink clients. The default port for TCP/IP is 2439. |
The -zf option 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 MobiLink 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.
Proceed to Lesson 6: Starting the MobiLink clients.
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |