Unknown MySQL server host
matiaspereira3005
PROOP

a year ago

Hi,
I'm experiencing issues with the connection between the Flask project and the MySQL project, I've declared all the necessary variables from MySQL to Flask , but when I try to deploy the flask project, I encounter the following error in the deploy logs:

mysql.connector.errors.DatabaseError: 2005 (HY000): Unknown MySQL server host '' (-2)

Could you please assist me in resolving this issue?

View Deploy details

> ⓘ Deployment information is only viewable by project members and Railway employees.

Closed

1 Replies

brody
EMPLOYEE

a year ago

You would need to consult the documentation for the mysql client you are using, because you are not using the correct syntax, hence the empty string.

Unfortunately we are not able to provide coding assistance here.


Status changed to Closed brody over 1 year ago


Loading...