日期:2014-05-16 浏览次数:20570 次
?
指定Liferay-prota6.0.5的数据库为MySql,
你必须先在MySql建立数据库:lportal,
新建文件:portal-ext.properties,内容如下。将这个属性文件放到下面目录
D:\dev\liferay-portal-6.0.5\tomcat-6.0.26\webapps\ROOT\WEB-INF\classes。
(我的liferay-portal是放在D:\dev\liferay-portal-6.0.5)
?
然后运行liferay已配好的Tomcat服务器,会自动将一百多个表及数据建好。
?
portal-ext.properties
?
?
# # MySQL # 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=123456 # # DB2 # #jdbc.default.driverClassName=com.ibm.db2.jcc.DB2Driver #jdbc.default.url=jdbc:db2://localhost:50000/lportal:deferPrepares=false;fullyMaterializeInputStreams=true;fullyMaterializeLobData=true;progresssiveLocators=2;progressiveStreaming=2; #jdbc.default.username=db2admin #jdbc.default.password=lportal # # Oracle # #jdbc.default.driverClassName=oracle.jdbc.driver.OracleDriver #jdbc.default.url=jdbc:oracle:thin:@localhost:1521:xe #jdbc.default.username=lportal #jdbc.default.password=lportal # # SQL Server # #jdbc.default.driverClassName=net.sourceforge.jtds.jdbc.Driver #jdbc.default.url=jdbc:jtds:sqlserver://localhost/lportal #jdbc.default.username=sa #jdbc.default.password= # # Derby # #jdbc.default.driverClassName=org.apache.derby.jdbc.EmbeddedDriver #jdbc.default.url=jdbc:derby:lportal #jdbc.default.username= #jdbc.default.password= # # Hypersonic # #jdbc.default.driverClassName=org.hsqldb.jdbcDriver #jdbc.default.url=jdbc:hsqldb:${liferay.home}/data/hsql/lportal #jdbc.default.username= #jdbc.default.password= # # Ingres # #jdbc.default.driverClassName=com.ingres.jdbc.IngresDriver #jdbc.default.url=jdbc:ingres://localhost:II7/lportal #jdbc.default.username= #jdbc.default.password= # # Sybase # #jdbc.default.driverClassName=net.sourceforge.jtds.jdbc.Driver #jdbc.default.url=jdbc:jtds:sybase://localhost:5000/lportal #jdbc.default.username=sa #jdbc.default.password=
?
http://neujingxiao.blog.163.com/blog/#m=0?