備忘録

自分の為の備忘録

Bash on WindowsでMySQLを入れたらエラーが出て起動できなかった話

Bash on WindowsMySQLをインストールし、実行しようとしたところ

ERROR t002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

とエラーを吐き実行できなかった。 解決策を検索したところ既にGitHubのBashOnWindowsリポジトリにissueが立っていた。
https://github.com/Microsoft/BashOnWindows/issues/745
これを参考にしターミナルでsudo /etc/init.d/mysql startを実行したところMySQLが実行できるようになり解決。