在ubuntu 16的版本中,安装了mysql 后,启动时,程序提示 Starting MySQL database server mysqld No directory, logging in with HOME=的错误。
解决办法:
Stop MYSQL service:
sudo service mysql stopChange home directory of mysql from nonexistent to original directory where it is supposed to be:
sudo usermod -d /var/lib/mysql/ mysql
3. Now start mysql server again with:
sudo service mysql start
本文介绍了一种在Ubuntu 16环境下安装MySQL后遇到的启动错误,并提供了详细的解决步骤,包括停止MySQL服务、更改MySQL用户的家目录等操作。
2081

被折叠的 条评论
为什么被折叠?



