2017-07-06 23 views
0

我正在嘗試安裝Liferay GA4和主版本以用於開發目的。但是,我一直使用MySQL 5.7進入一個致命的例外。Liferay:GA4上空的MySQL 5.7導致致命異常

截至描述:https://issues.liferay.com/browse/LPS-73410

在一個空的數據庫中,MySQL 5.7,當服務器被提升後續異常。 (看起來都在兩個驅動com.mysql.jdbc.Driver和com.mysql.cj.jdbc.Driver)

liferay | 21:45:35,927錯誤[localhost-startStop-1] [MainServlet:275] com.liferay.portal.kernel.events.ActionException:com.liferay.portal.verify.VerifyException:com.liferay.portal.verify.VerifyException: java.sql.SQLSyntaxErrorException:表'XXXXX.EVENTS'不存在

liferay | com.liferay.portal.kernel.events.ActionException:com.liferay.portal.verify.VerifyException:com.liferay.portal.verify.VerifyException:java.sql.SQLSyntaxErrorException:表'XXXXX.EVENTS'不存在

我想知道這是否是我可以通過一些直接進入數據庫的過程得到解決方案......任何想法?

回答

1

我發現我用新的JDBC默認值解決了這個問題。

jdbc.default.driverClassName=com.mysql.cj.jdbc.Driver 
jdbc.default.url=jdbc:mysql://${database.host}/${database.schema}?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false&useSSL=false&nullNamePatternMatchesAll=true&&nullCatalogMeansCurrent=true 

來源:https://www.e-systems.tech/web/guest/blog/-/blogs/liferay-with-mysql-5-7-driver-changes

+1

當你還在Liferay的問題跟蹤鏈接的問題,這將是很好張貼此作爲解決方法/修復有作爲。 –