search
LoginSignup
9
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

updated at

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

参考

原因

$ 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権限にしても起動できなかった。)

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
What you can do with signing up
9
Help us understand the problem. What are the problem?