R
Railway

βœ‹ο½œhelp

Can't manually fill MySQL

Aalexbalandi9/15/2023
None of the options i've tried works. I can still create dbs and populate them when connecting through my python api from deployed app, but it's a bit of a hassle, since it essentially means i should run some code in my project only for the first deploy and then comment it out. I may be missing something, there is probably some "best practice" for populating dbs with railway, but I'm not sure which one πŸ‘€ Would really appreciate some pointers here.
Aalexbalandi9/15/2023
5908e018-e6a0-42ee-b4f6-04dab8bbe6fb
I guess tbh I can just run one-time script for cases like this. I kinda missed the fact that db is exposed not just for the project, but for the web in general πŸ™ˆ Still, the manual creation doesn't work and it probably should?
Jjonbeau9/15/2023
I think the response will be to use an alternative to the railway UI for now, as it's not up to par with the rest of their service. So yeah a one time script, that's what I do, or a database tool. (also, postgres is quite cheaper than mysql you may look into that instead)
Aalexbalandi9/15/2023
ty for the input. How much cheaper are we talking? πŸ˜…
Jjonbeau9/15/2023
I'm not completely sure cause I've always used postgres from the start πŸ˜… but this is my biggest db I think (not that big still)
Aalexbalandi9/15/2023
wow, i checked memory consumption of almost empty dbs at idle : it's 85 mb on postgress vs 500 mb on mysql, yikes! Ty for pointing my attention to this. I assume it gets a bit more even for really big dbs, but for small ones postgress is definitely better
Jjonbeau9/15/2023
wow indeed! nice
Mmantisinabox9/15/2023
@alexbalandi it’s better to connect to your railway db using something like MySQL Workbench, DataGrip or DBeaver, then you can manipulate it that way. The web ui is kinda borked
Aalexbalandi9/15/2023
well, what i actually ended up using was some python code in jupyter notebook (all inside vscode) πŸ™ˆ
But ye, I see it's the consensus now, will keep in mind, thank you!
Mmantisinabox9/15/2023
No worries.

Looking for more? Join the community!

R
Railway

βœ‹ο½œhelp

Join Server
Recommended Posts
Referenced variables are emptyIf I hardcode the url in env variables, the deployment is successful, however using a reference to aSetup a monorepoHey guys, I'm using yarn workspaces and turborepo. I tried setting up the build command to "yarn turCan't start Remotion serverWhenever I try to use the Remotion server it cannot open the browser process and shows me this errorRecover a file inside a deploymentBy mistake I left a sqlite file inside a deployment and made a lot of updates to the database on thaDeployment Failed during build processI'm encountering issues while trying to build my Vue 3 and TypeScript project on Railway using NixpaBuild failing without errorMy build is failing to deploy without any error. Its just saying the container failed to start. The Cloudflare detected but not redirectingI've put the the right dns settings in cloudflare NS into godaddy. see screenshot which should poinFailed to authenticate to mongodbDeploying a MongoDB database from the UI, automatically creates a database named "test" if you connePrivate NPM Registry (GitHub)I'm using Yarn 3, GitHub Packages, and NodeJS. I am testing a deploy with `railway up` and when it gDjango advice neededHello good people, i would like to know how can i get some support for Railway? I started with a basUpdate TypebotHello, how i can update my project of typebot without lose all? i am new user in railwayWho deleted our database?I am writing to inquire about the recent deletion of the MySQL database in our account, we noticed Dockerbuild failes with no matching versionI attached the error and the dockerfile. The dockerfile locally runs withouth error but on railway ifailed opening connection to sql: default addr for networkHi, I am trying to deploy my golang web service which connects to mysql. I have added the mysql url Deploying Meilisearch template does not workI have a running project, If I click on new -> template -> Meili then a new service is created. HoweDeploy Flutter, error on buildHelp me! How do I deploy my flutter app on railway?Strapi crashes out of nowhereHello, my Strapi app sometimes crashes out of nowhere. This is not very good, because I have a prod Automatic Scaling not workingProject Id: 70ab406f-186f-40f7-ac61-c1a8dcb4bbb9 I am a user on the Hobby plan, the scaling on my pCron Job Run NowHello, I created a separate service with a cron expression configured. All works well until I try tNo sure that the changes are being applied when railway up.I have a Django app that was working fine until recently. One day, after running `railway up`, I sta