How to solve mysqld service restart problem for above error?
Problem :
I was adding shell and home directory for mysql user,executed
following cmd,
shell> usermod -m -d /home/mysql -s /bin/bash mysql
If mysql is running and process running with mysql , we
need to stop mysql otherwise it will throw an error like
usermod: user mysql is currently used by process
27768
After stopping MySQL service and adding shell and homedir for mysql user, at the time mysqld service startup it started throwing error.
shell> service mysqld restart Redirecting to /bin/systemctl restart mysqld.service Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details. Shell> systemctl status mysqld.service ● mysqld.service - MySQL Server Loaded: loaded …[Read more]