LInux Mysql startup error: Job for mysqld.service failed because the control process exited with err...Solution

1. Start mysql and report an error

service mysqld start
Redirecting to /bin/systemctl start 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.

2. Analyze error messages

journalctl -xe

insert image description here


3. Solution

chown mysql:mysql -R /var/lib/mysql

4. Start the mysql service

service mysqld start

insert image description here

Guess you like

Origin blog.csdn.net/unbelievevc/article/details/132663898