#Connect Python Script to MySQL
16 messages · Page 1 of 1 (latest)
Project ID: 28e5bbc5-449a-46ba-80bd-62e16c4eed9b
You might find these helpful:
Project ID: 28e5bbc5-449a-46ba-80bd-62e16c4eed9b
are you getting this error when both the python script and mysql instance are running on railway?
yes
can you show me a screenshot of your service variables?
no no, please show the service variables though, those are the plugin variables
no never add the database variables manually, click the variable references link button, but read this before you get into that, read this
Ok it works thanks. Another question, if I have a database table that I want to have pre-loaded without the program needing to create it, what would be a good way for me to do that? Or should I set it up in the code like: if table exists, continue, if not, create it.
look into database migration