MySQL 5.7 No directory, logging in with HOME=/
在ubuntu 14的版本中,安装了mysql 后,启动时,程序提示 “No directory, logging in with HOME=/”root@xxx:/etc/mysql# service mysql restart* Stopping MySQL Community Server 5.7.11...* MySQL Community Server 5.7.11 i
·
在ubuntu 14的版本中,安装了mysql 后,启动时,程序提示 “No directory, logging in with HOME=/”
root@xxx:/etc/mysql# service mysql restart
* Stopping MySQL Community Server 5.7.11
...
* MySQL Community Server 5.7.11 is stopped
* Re-starting MySQL Community Server 5.7.11
No directory, logging in with HOME=/
..
* MySQL Community Server 5.7.11 is started
解决方法:
sudo service mysql stop
sudo usermod -d /var/lib/mysql/ mysql
sudo service mysql start
更多推荐
已为社区贡献1条内容
所有评论(0)