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 (中文) » UltraLite - Java 编程 » 教程:构建 Android 应用程序

 

第 2 课:启动 MobiLink 服务器

在本课中,您将启动 MobiLink 服务器来执行同步。

前提条件

本课假定您已完成前面的所有课程。 请参见第 1 课:设置新的 Android 项目

 任务
  • 通过从 %SQLANYSAMP16%\MobiLink\CustDB\ 运行以下命令来启动 MobiLink:

    mlsrv16 -v+ -zu+ -c "DSN=SQL Anywhere 16 CustDB;UID=ml_server;PWD=sql" -x http(port=80) -ot ml.mls

    -c 选项用于将 MobiLink 连接到 SQL Anywhere CustDB 数据库。-v+ 选项设置高级别的详细程度,以便您可以按照 MobiLink 服务器消息窗口中发生的情况进行操作。-x 选项指定用于通信的端口号。-ot 选项指定将在启动 MobiLink 服务器的目录中创建日志文件 (ml.mls)。

结果

MobiLink 服务器已启动。

 另请参见