Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

mysql cannot change directory to /nonexistent

#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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #change #directory
ADD COMMENT
Topic
Name
9+8 =