Table of Contents |
---|
...
การตั้งค่าเพื่อเปลี่ยน Default Datasource
- ค้นหาไฟล์ app_datasource-default.properties ในโฟลเดอร์ wflow (/home/myaccount in ใน Linux and และ /Documents and และ Settings/myaccount in ใน Windows).
- เปิดไฟล์โดยใช้โปรแกรม text editor หรือโปรแกรมอื่นๆ
- ทำการแก้ไขข้อมูลตามต้องการ เช่น username, password, connection URLs เป็นต้น
- บันทึกและรัน Joget ใหม่อีกครั้ง.
...
การแก้ไข Datasource Profiles
If you're continually working with different datasource sets and don't want to keep commenting/uncommenting and/or renaming property files, you can make use of the profiles that are available. In your home directory, you'll (by default) find 2 files that deal with datasource settings. The app_datasource.properties file points to the current profile that should be used, and you'll see หากคุณต้องการตั้งค่า datasource ไปยังที่ใหม่แบบถาวรหรือไม่ต้องการแก้ไขข้อมูลไฟล์ app_datasource-default.properties เดิม คุณสามารถสร้าง datasource profile ใหม่ได้ โดยในโฟลเดอร์ wflow จะมี 2 ไฟล์สำหรับจัดการ datasource
ไฟล์ app_datasource.properties จะชี้ไปยังไฟล์ที่มีการกำหนดค่าของ datasource ปัจจุบันไว้ และไฟล์ app_datasources-default.properties that should contain the details of your connection pools. To create a new profile, simply create a new properties file that is prefixed with จะมีรายละเอียดเช่น username, password, connection URLs
สำหรับการสร้าง datasource profile ใหม่ ให้ทำการสร้างไฟล์ที่มีชื่อนำหน้าด้วยคำว่า "app_datasources-". If our new datasource profile is called
ตัวอย่างกรณีถ้าคุณตั้งชื่อว่า "mynewprofile" then we're looking at:มีขั้นตอนดังนี้
- Create new file called app_datasources-mynewprofile.properties in your wflow directory (/home/myaccount in Linux and /Documents and Settings/myaccount in Windows).
- Edit the file using a text editor and specify your connection settings. Save file when done.
- Open app_datasources.properties and point your currentProfile to mynewprofile. Save file when done.
- Restart Joget.
...