2016-11-18 44 views
0

我無法在我的Linux服務器上安裝Gerrit,並獲得下面提到的錯誤。如何在linux機器上安裝「Gerrit」沒有任何錯誤?

我的配置文件:

Image of Gerrit config with error

錯誤:

fatal: DbInjector failed 
fatal: Unable to determine SqlDialect 
fatal: caused by com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: "y"'. 
fatal: caused by java.lang.NumberFormatException: For input string: "y" 

回答

1

它看起來像你做與數據庫服務器名和端口規範是錯誤的。他們都指定爲「Y」

enter image description here

+0

感謝您的上述方案@ uncletall ......現在得到不同的錯誤(下面提到的)致命的:DbInjector失敗 致命的:無法確定SQLDIALECT 致命:所致java.sql.SQLException:拒絕用戶'gerrit'@ip10-xx-x-xx.ec2.internal'的訪問(使用密碼:YES) – Dikil

+0

檢查您是否輸入了正確的密碼,您可以在/home/gerrit2/review_site/etc/secure.config – uncletall

+0

你可能想嘗試連接到127.0.0.1 – uncletall

相關問題