R
Railway

✋|help

SpringBoot with MySQL on railway setup

Sshmdsgn9/2/2023
Hey I am learning SpringBoot and was working locally with a MySQL db set up(locally as well), and I thought of making one in the Railway and connect it up to the SpringBoot code that I wrote.

Anyone knows how to do that? Like I need to do stuff in the application.properties right? but cant figure out what to put in exactly. if anyone can help, appreciate it
FFragly9/2/2023
n/a
^ write that or the thread will close
Sshmdsgn9/2/2023
n/a
FFragly9/2/2023
So if I understnad correctly, you wanna make an sql database on railway?
Sshmdsgn9/2/2023
yes
i made one for trying out, but couldn't figure out how to connect it with the springboot stuff
FFragly9/2/2023
then you'd want to create a Database on railaway
you can do so by right clicking on your project's page and clicking on database
and then selecting the db you wanna use
FFragly9/2/2023
after that, you just use the env variables railway provides to connect to it from your project
you can read more about ^ here: https://docs.railway.app/develop/variables
FFragly9/2/2023
Sshmdsgn9/2/2023
ok ill try it out

Looking for more? Join the community!

Recommended Posts
Laravel: failed to build projectHello, I am new to Railway. I am trying to deploy laravel project from my github repo, which is a rePricing questioni got 10 eur in credits because that lowest i could go and got hobby plan 5 eur a month, but after mGithub being in privateHello, I'm having this return with my github being in private. [Evolution API] v1.5.0 1 - Sat Sep 02Yt-DlHey i recently just got railway n found out yt-dl is banned for some reason i just wanted to host mySSH to Wordpress instanceI would like to ssh to my wp instance volume to make changes to the source code there. Is there way Add search to Postgres TableViewI have a problem, big table and I need change some rows but can't find it and update without sql reqDoes anyone know what the procfile command should be for Django Daphne?I'm trying to move from wsgi to asgi in Django and not sure what the procfile command should be. I'Does anyone know what the procfile should be for daphne?I'm trying to move from wsgi to asgi in Django and not sure what the procfile command should be. I'No data is being written to the fileHi all. When I start my telegram bot, I log messages. All messages are written to a text document. WBuild failed but not sure whyHi! I'm trying to understand why my build failed, and I can't discern any errors in the logs. Here'sOne service is unable to connect to Postgres container, while the other connects fineHi, I have two typescript services and a postgres service in a project. One of the typescript servicGo Deploy Gone WrongHey all, need a sanity check on a failing deploy. I am able to build and run my app locally just finNeed Help with Discord BotThe bot uses chatgpt and play.ht to generate text, and then read the text in a discord server. When Deploying without having to do npx playwright install-depsHello, I'm deploying a node.js application that is using playwright, and it needs some dependencies Nuxt 3 DeployHi, has anyone done nuxt 3 deploy yet? What do I have to set? Is there a specific setting in nuxt.co'The information you’re about to submit is not secure'I have a very simple fastAPI page that I just began hosting through github on railway. It has a textPayment shows unsuccessful even though it's notHello, I got an email today morning about last month usage (1 Aug - 1 Sep) payment shows unsuccessfDeployment issues in Spring Boot projectHello, I am a newcomer using the Hobby Plan. My project is built on the Spring Boot platform and runBackup DatabaseHi, is it possible to perform or schedule database backups on railway? If so, could you explain howIssuing TLS certificate ongoing for 4 days nowHey folks, I've added a CNAME dns on my domain on Monday, and then it changed the status on the rail