21 Replies
Project ID:
N/A
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
@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
so...
should i connect to it in the same project to fix the error ?
yes it needs to be in the same project, in the same environment to be able to connect to from the private network
(probably needs that 2 second delay) :sadcat:
yeah but delay or not, they need to be in the same project first
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
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/
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
please send your deploy logs
i couldn't get it after i added the bookmark it didn't now what to do next π
please read the 3 steps on the page
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 ?
the link that the arrow is pointing to
what i did wrong ?
youre on a phone
yes
please do this on a computer
ok