I'm running application from docker container, that attempts to connect with mysql host
mysql host is localhost and my docker container running on localhost:8080
and here's my config.yml file
database:
  driverClass: com.mysql.cj.jdbc.Driver
  # TODO: if running locally without k8s, change the service url to your localhost
  url: jdbc:mysql://localhost:3306/locations?useSSL=false
  user: root
  password: root
  maxWaitForConnection: 1s
  validationQuery: "SELECT now()"
  validationQueryTimeout: 3s
  minSize: 8
  maxSize: 32
  checkConnectionWhileIdle: false
  evictionInterval: 10s
  minIdleTime: 1 minute
  checkConnectionOnBorrow: true
When i tried to access my app it always gives me the exception
ERROR [2018-02-08 18:16:56,508] org.apache.tomcat.jdbc.pool.ConnectionPool: Unable to create initial connections of pool.
! java.net.ConnectException: Connection refused (Connection refused)
I've tried many solution over google :D, but nothing works for me!
my java connector version:
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.9-rc'
Can anybody help! Also i'm running on ubuntu,
When i tried to run my app from the IDE, it works well, but from docker container gives the exception!
 
    