Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Problema com o SQL no Heroku

Pessoal estou tentando subir uma aplicação em spring para o heroku, estou tomando erros do mysql, nunca mechi com o heroku e estou bem perdido. Se alguem puder me ajudar ficaria muito grato.

2018-03-23T18:41:45.181274+00:00 app[web.1]:     at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnectionFromDriver(AbstractDriverBasedDataSource.java:205) ~[spring-jdbc-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-03-23T18:41:45.181276+00:00 app[web.1]:     at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnection(AbstractDriverBasedDataSource.java:169) ~[spring-jdbc-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-03-23T18:41:45.181282+00:00 app[web.1]:     at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) ~[hibernate-core-5.2.14.Final.jar!/:5.2.14.Final]
2018-03-23T18:41:45.181284+00:00 app[web.1]:     at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:180) ~[hibernate-core-5.2.14.Final.jar!/:5.2.14.Final]
2018-03-23T18:41:45.181286+00:00 app[web.1]:     at org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl.getIsolatedConnection(DdlTransactionIsolatorNonJtaImpl.java:43) ~[hibernate-core-5.2.14.Final.jar!/:5.2.14.Final]
2018-03-23T18:41:45.181288+00:00 app[web.1]:     ... 43 common frames omitted
2018-03-23T18:41:45.181289+00:00 app[web.1]: Caused by: java.net.ConnectException: Connection refused (Connection refused)
2018-03-23T18:41:45.181291+00:00 app[web.1]:     at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_161-heroku]
2018-03-23T18:41:45.181293+00:00 app[web.1]:     at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_161-heroku]
2018-03-23T18:41:45.181294+00:00 app[web.1]:     at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_161-heroku]
2018-03-23T18:41:45.181296+00:00 app[web.1]:     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_161-heroku]
2018-03-23T18:41:45.181297+00:00 app[web.1]:     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_161-heroku]
2018-03-23T18:41:45.181299+00:00 app[web.1]:     at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_161-heroku]
2018-03-23T18:41:45.181300+00:00 app[web.1]:     at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:211) ~[mysql-connector-java-5.1.45.jar!/:5.1.45]
2018-03-23T18:41:45.181302+00:00 app[web.1]:     at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300) ~[mysql-connector-java-5.1.45.jar!/:5.1.45]
2018-03-23T18:41:45.181303+00:00 app[web.1]:     ... 64 common frames omitted
1 resposta
solução!

Fala ai Igor, de boa ?

Cara ele tá reclamando que a conexão não foi estabelecida, provavelmente os parametros para acesso ao banco que você está passando não estão corretos, consegue confirmar isso ?