Job for mysqld.service failed because the control process exited with error code

I encountered a problem during the startup mysql today.Job for mysqld.service failed because the control process exited with error codeThe error is recorded as follows.

premise

Before starting, in/etc/my.cnfAdded the following content:

server-id=slave1

Solution process

After online search, many solutions are created/var/run/mysqld/Directory, the lack of this directory causes mysql to start creating pid files. But this directory is on my server. Finally find mysql official website aboutserver-idThe description shows that the type of server-id isInteger, that is, the number should be 0, 1, 2..., not should beslave1Such a string willserver-id=slave1Change intoserver-id=2It will start successfully in the future.

Intelligent Recommendation

MySQL startup error Job for mysqld.service failed because the control process exited with error code. See “sys

Job for mysqld.service failed because the control process exited with error code. See “systemctl status mysqld.service” and “journalctl -xe” for details. View tail -n 300 /var/...

Restarting MySQL service on Linux reported an error "Job for mysqld.service failed because the control process exited with error code"

abnormal Execute on Linuxservice mysqld restartThe command to restart MySQL service is stuck. We checked the log file of mysql and found an error:InnoDB: Unable to lock ./ibdata1 error: 11 reason Chec...

Installing MySQL appears Job for mysqld.service failed because the control process exited with error code problem

Original link: Ali cloud server fails to start installing MySQL: According to this prompt, see the reasons to Baidu's approach is, after modifying the configuration file, or an error“Job for mys...

MySQL - Job for mysqld.service failed because the control process exited with error code problem

According to this prompt, see the reasons to Baidu's approach is, after modifying the configuration file, or an error "Job for mysqld.service failed because the control process exited with error ...

Installing MySQL appears Job for mysqld.service failed because the control process exited with error code

Alibaba Cloud server failed to start when installing MySQL: According to this prompt, check the reason, Baidu's way is to still report an error after modifying the configuration file“Job for mys...

More Recommendation

Start mysql Job for mysqld.service failed because the control process exited with error code.

Foreword: Recently, for a certain event, I made 200 yuan and opened a server to play; Server system: centOS7; Then after I installed mysql8.0.19, I got an error when I started it. Error message: Job f...

When MySQL opens common logs, Job for mysqld.service failed because the control process exited with error code.

Error occurs when MySQL opens common logs error Ideas Solve the problem error When opening common logs, Job for mysqld.service failed because the control process exited with error code. See "syst...

MySQL Adventures: Job for MySQLD.Service Failed Because The Control Process Exited with Error Code

phenomenon After a May Day holiday, the computer has also been a good rest. On the first day of starting, I found that MySQL hangs, the reason is that other services have a large number of logs, and t...

Job for mysqld.service failed because the control process exited with error code. See “systemctl sta

Remember the server being attacked Since Ali Cloud has reminded my server being attacked, some ports have been banned, so I log in to the Ali Cloud web page to restart the ECS instance, the result. . ...

mysql failed to start --Job for mysqld.service failed because the control process exited

1.centos7 start error 2. more /var/log/mysqld.log View Log Lack catalog file # Mkdir -p / var / run / mysqld, the file will create a mysqld.pid 3. Start is still being given, permission issues 4. chow...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top