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.
Read More:
- [Solved] MySQL Startup Error: Job for mysqld.service failed because the control process exited with error code
- [Solved] mariadb Startup Error: Job for mariadb.service failed because the control process exited with error code.
- [Solved] Rabbitmq Startup Error: Job for rabbitmq-server.service failed because the control process exited with
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’
- Dbeaver Import SQL File Error: Error executing process Process failed (exit code = 1). See error log. Process failed (exit code = 1). See error log.
- How to Solve mysqld — console command error
- ERROR: mysqld failed while attempting to check config [How to Solve]
- [Solved] ERROR: child process failed, exited with error number 14 (error number 1, error number 100)
- MYSQL8 Startup Error: mysqld_safe error: log-error set to ‘/var/log/mariadb/mariadb.log‘
- [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory.
- [Solved] sqoop Import Datas to mysql error: ERROR tool.ExportTool: Error during export: Export job failed
- Centos7 Initialize mysql Error: Could not open file ‘/usr/local/mysql/log/mysqld.log‘ for error logging: Per
- Oracle creates a job and executes the stored procedure with parameters regularly
- [Solved] mysqldump: Error: ‘Access denied; you need (at least one of) the PROCESS privilege(s) for this opera
- MYSQL 5.7 Error Code: 1290. The MySQL server is running with the –secure-file-priv option so it..
- How to Solve MYSQL Error: Failed to start MySQL 8.0 database server
- MySQL startup error: vcruntime140_1.dll cannot be found, unable to continue code execution
- (Fixed) workbench MySQL Error Code: 2013. Lost connection to MySQL server during query
- [Solved] Error Code: 2013. Lost connection to MySQL server during query
- mysql workbench Error Code: 1046. No database selected Select the default DB to be used by doubl