The mysql service failed to start under centos7

王林
Release: 2020-04-01 13:53:55
Original
2468 people have browsed it

The mysql service failed to start under centos7

Cause analysis:

Open the MySQL alarm log, prompting that the pid file cannot be created, as follows:

The mysql service failed to start under centos7

Solution:

Create the /var/run/mysqld/ directory and restart the MySQL service.

[root@spark01 ~]# mkdir -p /var/run/mysqld/
[root@spark01 ~]# /etc/init.d/mysqld start
Copy after login

Note: The owner and group of /var/run/mysqld/ are root. Mysql cannot create files in it. You need to modify the owner and group of the directory.

The mysql service failed to start under centos7

Related tutorial recommendations: centos tutorial

The above is the detailed content of The mysql service failed to start under centos7. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template