R
Railway13mo ago
Jean K

how can I add SQL code to create the tables in MySQL service?

I am trying to implement an API with NodeJS and a MySQL database, the problem arises when adding the queries to the database, the queries tab does not appear to add my SQL code, how can I add my SQL code to create the tables ?
No description
Solution:
you would want to use desktop software like dbgate
Jump to solution
24 Replies
Percy
Percy13mo ago
Project ID: N/A
Jean K
Jean KOP13mo ago
N/A
Solution
Brody
Brody13mo ago
you would want to use desktop software like dbgate
Jean K
Jean KOP13mo ago
In the documentation I saw that queries could be added to create the tables with SQL code.
Jean K
Jean KOP13mo ago
No description
Brody
Brody13mo ago
railway doesn't have that particular feature anymore, you want to use software like dbgate to do that
Jean K
Jean KOP13mo ago
what is dbgate?
Brody
Brody13mo ago
dbgate is software to run queries and manage the data in your database
Jean K
Jean KOP13mo ago
What I want is for railway to let me create the tables in my database that I create there
Brody
Brody13mo ago
that feature never really worked well, it's a better idea to use dedicated software for it, like dbgate as previously mentioned
Jean K
Jean KOP13mo ago
And dbgate lets me deploy my database to production?
Brody
Brody13mo ago
you deploy the database on railway, and use dbgate to manage the data in the database you have on railway
Jean K
Jean KOP13mo ago
Ok, how do I do that?
Brody
Brody13mo ago
have a look at the dbgate website https://dbgate.org/
Jean K
Jean KOP13mo ago
ok, created my database in dbGate, then how can I link the database with railway?
Brody
Brody13mo ago
you don't create a database in dbgate, you use dbgate to connect to the database you created on railway
Jean K
Jean KOP13mo ago
ahhhh, ok How to connect my railway database with dbGate? some documentation
Brody
Brody13mo ago
you go to the variables tab on your mysql service and copy the variables dbgate wants you to fill in you can read dbgates own documentation on how to use that software
Jean K
Jean KOP13mo ago
Is dbGate the only software I can do this with?
Brody
Brody13mo ago
there's plenty, that's just the software I'm recommending
Jean K
Jean KOP13mo ago
Can you mention a few more to try?
Brody
Brody13mo ago
only mysql workbench and dbeaver are coming to mind for mysql
Jean K
Jean KOP13mo ago
I really appreciate your help, thank you my question was solved
Brody
Brody13mo ago
no problem
Want results from more Discord servers?
Add your server