MySQL:The server quit without updating PID file

When you log in mysql, I found an error The server quit without updating PID file, specifically checked, there are several possible reasons:

Disk full
df-h to view the disk case
1
may be mysql.pid file mysql data directory without written permission
solution: give permission
chmod -R 755 / usr / local / mysql / data
and then restart mysql

mysql user does not have write permission
Solution: administering permissions
chown -R mysql: mysql / var / data
after restarting mysql

May remain mysql process
ps -ef | grep mysqld
If the discovery process, you can stop and restart

Previously installed mysql server, data residual influence
Solution: mysql data directory to / data to see if there is mysql-bin.index, deleted
1
mysql start does not specify the configuration file (default /etc/my.cnf)
resolved method: set the line [mysqld] under
datadir = / usr / local / mysql / data

skip-federated field in question
to check whether the configuration file has no comment field, if no comment, need to comment
. 1
sellinux not closed
open / etc / selinux / config,
the SELINUX = enforcing SELINUX = disabled to
Save and exit restart the machine.

Guess you like

Origin blog.51cto.com/14510327/2434379