skip to Main Content

(Docker+SpringBoot+Mysql) Mysql connection refused – Phpmyadmin

Problem Description Spring Boot(app) container cant connect to "mysql" container Problem Output Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. application.properties spring.datasource.username = root spring.datasource.url = jdbc:mysql://mysql:3306/fms?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false spring.datasource.password = manager@123 docker-compose.yml version:…

VIEW QUESTION
Back To Top
Search