Featured image of post GithubActionsでMySQLが動かなくなった件

GithubActionsでMySQLが動かなくなった件

Twitter ツイート Hatena Bookmark ブックマーク

2ヶ月ぐらい放置してたプロジェクトのGithub Actionsでテストを走らせたらMySQLがエラーになって落ちてた・・・。

ERROR 2003 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (111)

こんな感じにMySQLに接続できないというエラーが・・・。
どうやら、2020/2/21からMySQLサービスを自動的に起動しなくなってた・・・

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

ということで、起動させてあげる

1
2
- run: |
    sudo /etc/init.d/mysql start    
comments powered by Disqus
Built with Hugo
テーマ StackJimmy によって設計されています。