R
Railwayβ€’10mo ago
Mostafa

connect to database on railway locally

.
21 Replies
Percy
Percyβ€’10mo ago
Project ID: N/A
Mostafa
MostafaOPβ€’10mo 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
MostafaOPβ€’10mo 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
MostafaOPβ€’10mo ago
so... should i connect to it in the same project to fix the error ?
Brody
Brodyβ€’10mo 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β€’10mo ago
(probably needs that 2 second delay) :sadcat:
Brody
Brodyβ€’10mo ago
yeah but delay or not, they need to be in the same project first
Mostafa
MostafaOPβ€’10mo 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β€’10mo 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
MostafaOPβ€’10mo 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β€’10mo ago
please send your deploy logs
Mostafa
MostafaOPβ€’10mo ago
i couldn't get it after i added the bookmark it didn't now what to do next πŸ™‚
Brody
Brodyβ€’10mo ago
please read the 3 steps on the page
Mostafa
MostafaOPβ€’10mo 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β€’10mo ago
the link that the arrow is pointing to
Mostafa
MostafaOPβ€’10mo ago
No description
Mostafa
MostafaOPβ€’10mo ago
what i did wrong ?
Brody
Brodyβ€’10mo ago
youre on a phone
Mostafa
MostafaOPβ€’10mo ago
yes
Brody
Brodyβ€’10mo ago
please do this on a computer
Mostafa
MostafaOPβ€’10mo ago
ok
Want results from more Discord servers?
Add your server