Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General

Joget requires TCP/IP connection to the database. Please refer to the next section first before starting.

  1. Create a database in SQL Server; name it jwdb (or another preferred database name).

    Thai

    สร้างฐานข้อมูลใน SQL Server ตั้งชื่อเป็น jwdb (หรือชื่อฐานข้อมูลอื่นที่ต้องการ)

  2. Make sure that you grant the intended database user with sufficient access to "jwdb".

    Thai

    ตรวจสอบให้แน่ใจว่าคุณให้สิทธิ์ผู้ใช้ฐานข้อมูลด้วยการเข้าถึง "jwdb" ที่เพียงพอ

  3. Download jwdb-mssql-ddl.sql and load this SQL file to "jwdb". This will populate all necessary Joget table structures into "jwdb".

    Thai

    ดาวน์โหลด jwdb-mssql-ddl.sql และโหลดไฟล์ SQL นี้เป็น "jwdb" สิ่งนี้จะบรรจุโครงสร้างตาราง Joget ที่จำเป็นทั้งหมดไว้ใน "jwdb"

  4. In joget-installation-directory/wflow/, create a new datasource profile file - app_datasource-mssql.properties.

    Thai

    ใน joget-installation-directory / wflow / ให้สร้างไฟล์โปรไฟล์แหล่งข้อมูลใหม่ - app_datasource-mssql.properties

  5. Open to edit joget-installation-directory/wflow/app_datasource-mssql.properties in text editor and insert contents as shown in Figure 1 below. You may need to edit the configurations (such as datasource URL, database user/password) according to your environment.

    Thai

    เปิดเพื่อแก้ไข joget-installation-directory / wflow / app_datasource-mssql.properties ในเท็กซ์เอดิเตอร์และแทรกเนื้อหาดังแสดงในรูปที่ 1 ด้านล่าง คุณอาจต้องแก้ไขการกำหนดค่า (เช่น URL แหล่งข้อมูลผู้ใช้ฐานข้อมูล / รหัสผ่าน) ตามสภาพแวดล้อมของคุณ

  6. Open to edit joget-installation-directory/wflow/app_datasource.properties in text editor and change the content as shown in Figure 2 below. This is to activate the datasource profile named "mssql".

    Thai

    เปิดเพื่อแก้ไข joget-installation-directory / wflow / app_datasource.properties ในเท็กซ์เอดิเตอร์และเปลี่ยนเนื้อหาดังแสดงในรูปที่ 2 ด้านล่าง นี่คือการเปิดใช้งานโปรไฟล์แหล่งข้อมูลที่ชื่อว่า "mssql"

  7. RestartStart Joget server.

    Thai

    รีสตาร์ทเซิร์ฟเวอร์ Joget

Step 1: Datasource Profile Configurations

Thai

ขั้นตอนที่ 1: การกำหนดค่าโปรไฟล์ของแหล่งข้อมูล

Code Block
langxml
workflowDriver=com.microsoft.sqlserver.jdbc.SQLServerDriver
workflowUrl=jdbc\:sqlserver\://host\:1433;DatabaseName\=jwdb;SelectMethod\=cursor
workflowUser=username
workflowPassword=password

You may need to change the datasource URL, database user and database user's password accordingly.

Thai

คุณอาจต้องเปลี่ยน URL แหล่งข้อมูลผู้ใช้ฐานข้อมูลและรหัสผ่านของผู้ใช้ฐานข้อมูลตามลำดับ

Step 2: datasource.properties

Thai

ขั้นตอนที่ 2: datasource.properties

Code Block
langxml
currentProfile=mssql

...

  1. Using the database user credential and database created earlier. Continue on with Setting Up Database.

Enabling TCP/IP on Microsoft SQL Server 2005

In order to connect to the Microsoft SQL Server remotely (such as JDBC datasource), TCP/IP needs to be enabled. This is disabled by default on Microsoft SQL Server 2005 Express edition. TCP/IP may also be manually disabled on other editions of Microsoft SQL Server 2005.

...