MySQL Connection
himanshu-0236
TRIALOP

a year ago

Hi
I cannot connect to mysql server that I have created. I am getting the following error: HikariPool-1 - Failed to create/setup connection: Communications link failure

I am trying to connect to the server in spring boot project

My prod file contain these:
spring.datasource.url=jdbc:mysql://<HOST>:3306/railway spring.datasource.username=root spring.datasource.password=password spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

I tried connecting to the server using terminal and got the following error:
ERROR 2005 (HY000): Unknown MySQL server host 'mysql.railway.internal' (8)

2 Replies

costgranda
TRIAL

a year ago

In your spring boot container settings tab, enable the beta flag called New Builder Environment


himanshu-0236
TRIALOP

a year ago

I tried deployment after enabling New Builder Environment and still facing same issue.


Loading...