#Error: P1001: Can't reach database server

37 messages · Page 1 of 1 (latest)

vestal vector
#

anybody any help ?

strong valeBOT
#

Project ID: N/A

uncut relicBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

ancient lark
#

going to need much more information than this

vestal vector
ancient lark
#

where do you get this error

#

tell me more information, any information

vestal vector
vestal vector
# ancient lark where do you get this error

"dependencies": {
"@prisma/client": "^5.7.1",
"@types/node": "20.10.6",
"@types/react": "18.2.46",
"@types/react-dom": "18.2.18",
"next": "14.0.4",
"prisma": "^5.7.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"ts-node": "^10.9.2",
"typescript": "5.3.3"
},

ancient lark
#

where have you set the database credentials for local use?

vestal vector
ancient lark
#

where have you set the database url variable so that you can use it locally

vestal vector
#

DATABASE_URL = "the url"

ancient lark
#

is prisma setup to load the variables from that .env file?

vestal vector
#

in the file schema.prisma

#

seems counfusing dosen`t it ?

ancient lark
#

but are the variables in your .env file being loaded before running the migrations

vestal vector
#

idk how can ensure that?

ancient lark
#

that would be a question for prisma's documentation

#

and side question, can you connect to the database on railway with something like dbgate?

vestal vector
#

you think the problem lies in prisma configuration ?

ancient lark
#

a database client

vestal vector
#

damn i`m too noob

ancient lark
#

no worries we all start somewhere

vestal vector
vestal vector
ancient lark
#

have you tried connecting to the database with dbgate yet?

vestal vector
#

i have no experince in back-end what so ever

ancient lark
#

we all start somewhere but you can start by googling for dbgate 😉

#

don't overthink this

vestal vector
#

ok if you would give me easy tools to get me up and running with next js what would that be ?

ancient lark
#

please try connecting to your railway database with dbgate

vestal vector
#

thanks i`ll see to it