我是新的播放框架。我正试图连接到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