hey anyone can tell me how to connect my railway mysql with my django project ?

AnonymousTRIAL

8 months ago

I got below error how can i sort this ...

django.db.utils.OperationalError: (2005, "Unknown server host 'mysql.railway.internal' (11001)")

django.db.utils.OperationalError: (2002, "Can't connect to server on 'containers-us-west-123.railway.app' (10060)")

Solved

3 Replies

8 months ago

When developing locally you will need to use the public host and port of your database service.


willymwauraHOBBY

8 months ago

When developing locally you will need to use the public host and port of your database service.

@brody mine too is not working and i have used the public url of my postgresql


8 months ago

Please do not hijack other's threads.

Going to close this out since I have confirmed there are no issues connecting to OP's database publically.


Status changed to Solved brody 8 months ago