Skip to content

Github Actions - Can't connect to mysql #25200

Answered by Yanjingzhu
sidd9433 asked this question in Actions
Discussion options

You must be logged in to vote

The issue is caused by this change: https://github.blog/changelog/2020-02-21-github-actions-breaking-change-ubuntu-virtual-environments-will-no-longer-start-the-mysql-service-automatically/

You could start mysql before creating database:  

- name: Create test database
   run: |
**sudo systemctl start mysql** mysql -uroot -proot < databases/tracker/create_databases.sql

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@aroraank11
Comment options

@bkestelman
Comment options

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