When closing the virtual machine, and then reopening the virtual machine, The following error will appear when executing the command systemctl start mysqld to start the mysql service: Job for mysqld.service failed because the control process exited with error code. See “systemctl status mysqld.service” and “journalctl -xe” for details.
The above situation occurs because the virtual machine is shutting down, mysql service-related control process error, After my own learning and experience, I got a solution: First enter the specified directory/run, create a mysqld file in this directory, Then authorize this file, In this way, the mysql service can be started normally
In fact, when we install mysql, start When mysql service, use the command systemctl enable mysqld
to set the boot to start automatically, the above error will not occur.
[Solved] Job for mysqld.service failed because the control process exited with error code
Leave a reply