2017-11-11 132 views
0

我剛剛爲liferay 7安裝了tomcat server 8.0,並嘗試在嚮導中設置連接字符串。但是,收到此錯誤:如何在liferay portal嚮導中設置JDBC連接字符串?

An unexpected error occurred while connecting to the database.

如何設置超音速分貝的位置?

錯誤:

07:51:36,217 INFO [http-nio-8080-exec-1][HikariDataSource:95] HikariPool-3 - Starting... 07:51:37,220 ERROR [http-nio-8080-exec-1][HikariPool:534] HikariPool-3 - Exception during pool initialization. java.sql.SQLInvalidAuthorizationSpecException: invalid authorization specification at org.hsqldb.jdbc.JDBCUtil.sqlException(JDBCUtil.java:327) at org.hsqldb.jdbc.JDBCUtil.sqlException(JDBCUtil.java:113) at org.hsqldb.jdbc.JDBCConnection.(JDBCConnection.java:3618) at org.hsqldb.jdbc.JDBCDriver.getConnection(JDBCDriver.java:318) at org.hsqldb.jdbc.JDBCDriver.connect(JDBCDriver.java:260) at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:95) at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:101) at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:346)

enter image description here

+0

與編程無關的問題超出了計算器的範圍。請考慮將它們帶到Liferay論壇或其他平臺。謝謝。 –

回答

2

您可以通過以下路徑配置:

jdbc:hsqldb:file:E:/workspace/hsql/lportal;hsqldb.write_delay=false 

或portal-ext.properties

jdbc.default.driverClassName=org.hsqldb.jdbc.JDBCDriver 
    jdbc.default.url=jdbc:hsqldb:file:E:/workspace/hsql/lportal;hsqldb.write_delay=false 
    jdbc.default.username=sa 
    jdbc.default.password= 
相關問題