8
8

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