8
8

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 5 years have passed since last update.

mysqlが起動できない場合: No directory, logging in with HOME=/

Last updated at Posted at 2015-08-22

参考

原因

$ grep mysql /etc/passwd
mysql:x:106:111:MySQL Server,,,:/nonexistent:/bin/false

HOMEが /nonexistent になっている。

修正

usermod -d /var/lib/mysql mysql
mysql_install_db

これで起動できるようになる。
(なお /nonexistent を作ってmysql権限にしても起動できなかった。)

8
8
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
8
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?