我是新的播放框架。我正試圖連接到Linux服務器上的MySQL數據庫。它不工作!播放框架 - 連接到linux mysql
我得到一個錯誤:
A database error occured : Cannot connected to the database, Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
反正我能夠通過我的MySQL工作臺連接Linux服務器。
application.mode=dev
%prod.application.mode=prod
jpa.ddl=update
db.url=jdbc:mysql://<ipaddress>:3306/<database>?useUnicode=false&characterEncoding=ISO-8859-1&connectionCollation=utf8_swedish_ci
db.driver=com.mysql.jdbc.Driver
db.user=<user>
db.pass=<password>
你真的必須顯示爲整個配置? 200多行評論,其中重要的只有4行? – biesior
@ biesior,對不起。我正在刪除不必要的代碼! – dotnetrocks
另外請寫更多什麼是表示它不工作...檢查你的日誌,如果你不會找到答案,最有可能你會發現一些線索。嘗試更詳細地描述問題 – biesior