- Liferay Beginner’s Guide
- Robert Chen Sandeep Nair Samir Bhatt
- 144字
- 2021-08-27 12:04:35
Time for action – changing the file
So first create a property file called portal-ext.properties
, within the LIFERAY_HOME
directory and add the following properties into it:
jdbc.default.driverClassName=com.mysql.jdbc.Driver jdbc.default.url=jdbc:mysql://localhost/neighbourhood_portal?useUnicode=true&characterEncoding=UTF8&useFastDateParsing=false jdbc.default.username={your_username} jdbc.default.password={your_password}
Replace {your_username}
and {your_password}
with your actual credentials for MySQL.
Note
Downloading the example code for this book
You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.
What just happened?
Restart your server and Liferay will now be using MySQL instead of Hypersonic database.

For Oracle WebLogic, place the portal-ext.properties
in WEBLOGIC_HOME\user_projects\domains
. Besides that you also need to copy mysql.jar
in the DOMAINS_HOME\Liferay\lib
along with the other dependencies. Restart the server and you should be able to see that now Liferay is using MySQL.
- ATmega16單片機項目驅動教程
- Cortex-M3 + μC/OS-II嵌入式系統開發入門與應用
- 新型電腦主板關鍵電路維修圖冊
- 基于ARM的嵌入式系統和物聯網開發
- Unity 5.x Game Development Blueprints
- 硬件產品經理手冊:手把手構建智能硬件產品
- 計算機組裝與維修技術
- 計算機組裝維修與外設配置(高等職業院校教改示范教材·計算機系列)
- BeagleBone Robotic Projects
- 單片機技術及應用
- Spring Cloud微服務和分布式系統實踐
- RISC-V處理器與片上系統設計:基于FPGA與云平臺的實驗教程
- Python Machine Learning Blueprints
- 微控制器的應用
- USB應用開發寶典