MYSQL connection problem

sivyamkumarTRIAL

a year 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

a year ago

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


sivyamkumarTRIAL

a year 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.


a year ago

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


MYSQL connection problem - Railway Help Station