Unable to connect to MySQL server - Django & Github Actions #25967
-
I’m trying to setup github actions for my django project. I am unable to connect to the service. This is my workflow config.
It’s been a whole day and I still couldn’t figure out what’s wrong with the MySQL setup. Can anyone help? Is there an official documentation on how to setup MySQL on github actions? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
If you give only one port number the port number on the host (what you can reach at localhost/127.0.0.1/::1) is chosen randomly, as shown in the services example. Could that be the issue? If you want the MySQL service to be available on 127.0.0.1:3306 your
|
Beta Was this translation helpful? Give feedback.
-
🥺 Thank you! I am new and learning and didn’t know about this. Spent almost a day trying! |
Beta Was this translation helpful? Give feedback.
-
I have the same issue but the port is set correctly. |
Beta Was this translation helpful? Give feedback.
If you give only one port number the port number on the host (what you can reach at localhost/127.0.0.1/::1) is chosen randomly, as shown in the services example. Could that be the issue?
If you want the MySQL service to be available on 127.0.0.1:3306 your
ports
setting should look like this: