Skip to content

Unable to connect to MySQL server - Django & Github Actions #25967

Discussion options

You must be logged in to vote

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:

ports:
  - '3306:3306'

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@airtower-luna
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants