Not able to update my User Data
I have successfully created schema and pushed db using Prisma but not able to populate the data whenever I do this it send me an error of invalid url string
62 Replies
Project ID:
3bfe0b93-74ce-47e0-a1e4-e71cf755eefd
Railway
404 - Page not found
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
@Answer Overflow kindly help
it shows my scheam is succesfully linked with prisma n railway but is not able to create a user
it gives
this error I an not able to debug the error
actually its a sql database
n I adding the same project url to my env
it clearly makes the use of env while npx prisma db push
but not while creating user
i recommend postgres
so please read those docs pages
ok
could you also help me with sql
mysql
Yeah I read those n I am applying the same just wanted to ask does the use of
MYSQL_URL from the db is only sufficient to connect to prisma?
please read the docs pages ive linked
they will answer your questions
well it didn't help
thats a .env file, do you have it in a service variable too?
no
please enclose al code in triple back ticks
ok
then do that
could you give me any example I didn't get what you said
please read the service variables docs guide
https://docs.railway.app/guides/variables#autocomplete-dropdown
ok what I understood is that I need to add a new variable in my variables on railway with same name as in env to make its connection successful or am I going wrong
correct
ok
please read this
yeah I read but I am not able to find what variable name would suits me
as not auto completion was provided as I typed in
show me a screenshot of your railway project
ok
that's not what I asked for
a screenshot of the project, not of your database
oh
ok
would this work
no that's still just a service
oh
full project screenshot, don't crop anything
don't mind its my first time use of railway
where is your app service?
How to do that
earlier I guess there was no use of those or what actually I was watching a tutorial there they didn't use any such service
how would you deploy your code to railway without a service for your code?
ok my bad what are the steps for that
have you not yet deployed your code to railway?
actually what earlier tried was pushing my db to railway using prisma
but I didn't know anything about
service or deployment
do you have your code on github?
yess
then deploy it from github, click the + new button
ok
I want to ask will this db n service how would they be connected or will the service will have its own separate db?
I have a feeling you haven't been reading the docs pages I've linked you?
no no its not that
I understood that url would be added into the service variable
the docs never said that though?
the docs point out that you need to add your own service variables to your apps service
yeah I am doing but in that variable what is needed to be add what not I didn't get like for example if I wanted add a variable for a mysql database
which one I should choose
the 4th one
ok
then after you add it you can go back and change it's name to the name of the variable you use in your code
ok and the value will be the db url of db ?
yes that's the 4th option
ok what if I select 1st then what will be the value for that or will selecting the 4th one will do my work
you want to add the 4th variable
yess
that's the only one prisma needs
okk
yeah it worked
thanks a lot
no problem