MYSQL connection problem
sivyamkumar
TRIALOP

2 years ago

I am new to railway and want to host my database available in my pc made using MYSQL to railway and connect it with my nextjs API that i am also trying to host on railway. I am unable to do it. Will anyone help me out? Its a request. Its my deadline to submit my project so its very much urgent. Any sort of help will be appreciated.

3 Replies

2 years ago

What have you tried and what issues are you running into?


sivyamkumar
TRIALOP

2 years ago

i just uploaded my nextjs file to github repo and then deploy it on railway then i created a mysql database. But probably i think i am having confusion in establishing a connection between database and my nextjs website.


2 years ago

You would need to use the applicable environment variables in code.


Loading...