它是否可以连接到heroku应用程序上的远程mysql数据库?
我试图连接到一个伞形远程数据库并获得一个超时错误:
"at=error code=H12 desc="Request timeout" method=GET path="/api/public/estabelecimentos/11" host=cheff-casa.herokuapp.com request_id=41221e2c-0dc5-4ffc-8915-2018a4cee9b3 fwd="191.240.220.62" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=http"
我的连接字符串:"jdbc:mysql://“+ DB_HOST +:”+ DB_PORT +DB_PORT
布斯:
发布于 2017-10-04 15:28:15
我解决了,后台数据库还没有SSL模式激活。Heroku需要SSL模式来连接到远程数据库。
https://stackoverflow.com/questions/46555496
复制相似问题