I'm trying to get Liferay 5.2.1 installed on a fresh jetty 5.1.1 instance and I can't figure out how to configure liferay to use MySQL either...
I've followed (what I think are) the latest instructions in the liferay-admin-guide and on context startup, the liferay war still tries to connect to a HSQL source.
I created the database as described in the instructions by running the create-minimal.sql script such that my "lportal" database now contains these tables:
mysql> show tables;
+--------------------------------+
| Tables_in_lportal |
+--------------------------------+
| Account_ |
| Address |
| AnnouncementsDelivery |
| AnnouncementsEntry |
....
| WikiNode |
| WikiPage |
| WikiPageResource |
+--------------------------------+
140 rows in set (0.00 sec)
My jetty.xml includes this new service block, and that's all I could find in the documentation about what needed to be done. Is there anything else? Some config file somewhere that tells Liferay to use MySql?
<Call name="addService">
<Arg>
<New class="org.mortbay.jetty.plus.JotmService">
<Set name="Name">TransactionMgr</Set>
<Call name="addDataSource">
<Arg>jdbc/LiferayPool</Arg>
<Arg>
<New class="org.enhydra.jdbc.standard.StandardXADataSource">
<Set name="DriverName">com.mysql.jdbc.Driver</Set>
<Set name="Url">jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8</Set>
<Set name="User">root</Set>
<Set name="Password">xxx</Set>
</New>
</Arg>
<Arg>
<New class="org.enhydra.jdbc.pool.StandardXAPoolDataSource">
<Arg type="Integer">4</Arg>
<Set name="MinSize">4</Set>
<Set name="MaxSize">15</Set>
</New>
</Arg>
</Call>
</New>
</Arg>
</Call>
On startup, there's this block that makes me suspect I'm not using HSQL:
SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also http://www.slf4j.org/codes.html#log4j_version
11020 [main] INFO com.liferay.portal.spring.hibernate.DialectDetector - Determining dialect for HSQL Database Engine 1
11021 [main] WARN com.liferay.portal.spring.hibernate.DialectDetector - Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes. The database settings can be changed in portal.properties.
11161 [main] INFO com.liferay.portal.spring.hibernate.DialectDetector - Using dialect org.hibernate.dialect.HSQLDialect
Loading jar:file:/opt/liferay/jetty-5.1.1/webapps/root/WEB-INF/lib/portal-impl.jar!/captcha.properties
Please sign in to flag this as inappropriate.