i had this error while trying to connecting my project database on railway
romanticizeel
TRIALOP

2 years ago

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql.railway.internal failed: Name or service not known (Connection: mysql, SQL: select * from sessions where id = mclSatErJXWH0D3zsrU3mUVMtIWgJPKCCl449LFQ limit 1)

1 Replies

2 years ago

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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...