Liferay 5.2.1 with Mysql in Glassfish 2.1
In the old versions of Liferay, switching from HSQL to MySQL was easy under Glassfish. Just replace the jdbc connector created for HSQL with one for MySQL and at the next restart of Liferay all was working ok. From version 5.2.1 configuration was changed and all is done from portal.properties. To switch from HSQL just create a portal-ext.properties with the following content:
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=lportal
jdbc.default.password=lportalpassword
and putit in
Good Luck























Leave your response!