23 9 月

MySQL won’t start – error: su: warning: cannot change directory to /nonexistent: No such file or directory

IT人生

0  comments

mysql user is looking for a home directory, which seems to have not been assigned. To do that, you can execute:

sudo systemctl stop mysql.service
sudo usermod -d /var/lib/mysql/ mysql
sudo systemctl start mysql.service

or

sudo service mysql stop
sudo usermod -d /var/lib/mysql/ mysql
sudo service mysql start

About the author 

Jason Huang

從事留學遊學策略規劃工作多年的教育觀察者, 對學習永遠抱持熱忱,

You may also like

紀錄一下第一次學習Flask並Deploy到Heroku遇到的坑

安裝 Mattermost 後使用Mysql 5.7 搜尋中文搜尋不到的解決方法

Docker中配置MySQL的錯誤訊息

Leave a Reply

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Subscribe to our newsletter now!