R
Railwayβ€’9mo ago
Mostafa

connect to database on railway locally

.
21 Replies
Percy
Percyβ€’9mo ago
Project ID: N/A
Mostafa
Mostafaβ€’9mo ago
if i created a mysql database and i have a python code that uses mysql database how can i use the code with mysql database locally in railway insted of using a online tcp
Mostafa
Mostafaβ€’9mo ago
@Brody when i got the private connection url i found it like this mysql://root:[email protected]:3306/railway so the host should be: mysql.railway.internal but when i try to connect to the database with the same host and 3306 port on railway (in another project) i get this error
No description
Mostafa
Mostafaβ€’9mo ago
so... should i connect to it in the same project to fix the error ?
Brody
Brodyβ€’9mo ago
yes it needs to be in the same project, in the same environment to be able to connect to from the private network
macwilko
macwilkoβ€’9mo ago
(probably needs that 2 second delay) :sadcat:
Brody
Brodyβ€’9mo ago
yeah but delay or not, they need to be in the same project first
Mostafa
Mostafaβ€’9mo ago
i added it to the same project and the same environment but i still get the same error can any one check if there any thing wrong this is the project id: e74c5d4f-1123-4d18-9c59-12928945c279
Brody
Brodyβ€’9mo ago
this is community help, we cant see anything about your project please send the deploy logs with this https://bookmarklets.up.railway.app/log-downloader/
Mostafa
Mostafaβ€’9mo ago
i added phpmyadmin to my project and opened it with the private networking variables and it connected normally so i think the error in my code so i will try to fix it thanks to everyone who helped
Brody
Brodyβ€’9mo ago
please send your deploy logs
Mostafa
Mostafaβ€’9mo ago
i couldn't get it after i added the bookmark it didn't now what to do next πŸ™‚
Brody
Brodyβ€’9mo ago
please read the 3 steps on the page
Mostafa
Mostafaβ€’9mo ago
i did but i think i need an explanation for it πŸ₯² i mean in the first step it says "Drag the link to your bookmarks bar" what's link ?
Brody
Brodyβ€’9mo ago
the link that the arrow is pointing to
Mostafa
Mostafaβ€’9mo ago
No description
Mostafa
Mostafaβ€’9mo ago
what i did wrong ?
Brody
Brodyβ€’9mo ago
youre on a phone
Mostafa
Mostafaβ€’9mo ago
yes
Brody
Brodyβ€’9mo ago
please do this on a computer
Mostafa
Mostafaβ€’9mo ago
ok
Want results from more Discord servers?
Add your server