1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

WSL2のUbuntuでMySQLサーバーが起動しない

Posted at

#症状
sudo service mysql startすると[fail]の文字が。何やと思って/var/log/mysql/error.logを見てみると

[ERROR] Could not create unix socket lock file /var/run/mysqld/mysqld.sock.lock.
[ERROR] Unable to setup unix socket lock file.
[ERROR] Aborting

調べてると、権限がないからsock.lockファイルが作れないとのこと。
#解決法
以下のリンクと同じようにchownコマンドで解決。chownとか初めて使ったわ・・・

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?