• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MySQL Configuration on Liferay

 
Allan Cheong
Ranch Hand
Posts: 71
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've downloaded and extracted Liferay bundled with Tomcat 6. Started Tomcat with no issue. However, I decided to use MySQL for the database so I create the database lportal in MySQL and created the file portal-ext.properties in the root directory of Liferay.

This is the content of portal-ext.properties:



Then I start the webserver again. I can see that tables and data are created in MySQL. But when http://localhost:8080 is opened, nothing is displayed. The page is white.

Tomcat console shows very long exceptions. How can I log this exception to a log file? And anyone knows what is causing this problem?
 
V N K Srujan Kollisetty
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C:\liferay\bundles\liferay-portal-tomcat-6.0-5.2.3\portal-ext.properties. This is the file need to be modified. Below properties need to be added in that file.

jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=root


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic