mysql启动的是时候报Starting MySQL...... ERROR! The server quit without updating PID file (/usr/local/mysql/data/VM13.pid).

场景:启动mysql的时候,会在控制台上打印Starting MySQL...... ERROR! The server quit without updating PID file (/usr/local/mysql/data/VM13.pid).

分析问题一:百度了一下是说/usr/local/mysql目录不是mysql:mysql权限查看了一下此目录的权限就是mysql:mysql的权限

drwxr-xr-x.  2 root  root    24 Dec  1  2017 bin
drwxr-xr-x.  2 root  root     6 Aug 12  2015 etc
drwxr-xr-x.  2 root  root     6 Aug 12  2015 games
drwxr-xr-x.  2 root  root     6 Aug 12  2015 include
drwxr-xr-x.  2 root  root     6 Aug 12  2015 lib
drwxr-xr-x.  2 root  root     6 Aug 12  2015 lib64
drwxr-xr-x.  2 root  root     6 Aug 12  2015 libexec
drwxr-xr-x  11 mysql mysql 4096 Sep 15 00:05 mysql
drwxr-xr-x.  2 root  root     6 Aug 12  2015 sbin
drwxr-xr-x.  5 root  root    46 Sep  1  2017 share
drwxr-xr-x.  2 root  root     6 Aug 12  2015 src

此种情况排除

分析问题二:查看内存是否满了,使用df -h 查看,发现磁盘满了

Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   46G   46G  4.1M 100% /
devtmpfs                 1.9G     0  1.9G   0% /dev
tmpfs                    1.8G     0  1.8G   0% /dev/shm
tmpfs                    1.8G   73M  1.7G   5% /run
tmpfs                    1.8G     0  1.8G   0% /sys/fs/cgroup
/dev/xvda1               497M  124M  373M  25% /boot
tmpfs                    354M     0  354M   0% /run/user/0
tmpfs                    354M     0  354M   0% /run/user/1000

将磁盘内容清空

重新启动mysql,启动成功

posted on 2018-09-18 10:46  lalala1_23  阅读(219)  评论(0编辑  收藏  举报

导航