针对StartingMySQL.ERROR!TheserverquitwithoutupdatingPIDfile如何解决这个问题,本篇文章进行了详细的解答,同时本文还将给你拓展Centos6下Mys
针对Starting MySQL. ERROR! The server quit without updating PID file如何解决这个问题,本篇文章进行了详细的解答,同时本文还将给你拓展Centos6 下 Mysql启动提示 Starting MySQL. ERROR! The server quit without updating PID file、CentOS 启动mysql的时候发生的错误 The server quit without updating PID file(…)、ERROR! The server quit without updating PID file、linux mysql 报错:MYSQL:The server quit without updating PID等相关知识,希望可以帮助到你。
本文目录一览:- Starting MySQL. ERROR! The server quit without updating PID file如何解决
- Centos6 下 Mysql启动提示 Starting MySQL. ERROR! The server quit without updating PID file
- CentOS 启动mysql的时候发生的错误 The server quit without updating PID file(…)
- ERROR! The server quit without updating PID file
- linux mysql 报错:MYSQL:The server quit without updating PID
Starting MySQL. ERROR! The server quit without updating PID file如何解决
今天数据库突然挂了。重启提示:
Starting MySQL. ERROR! The server quit without updating PID file (/usr/local/mysql/var/localhost.localdomain.pid).
经排查各种原因发现是磁盘空间满了
使用命令查看磁盘空间:
df -h
/dev/mapper/VolGroup-lv_root 100%
解决方法:清理mysql日志,释放磁盘空间
#创建日志备份目录
mkdir /home/mysqlbinbak
#移动mysql日志到备份目录
cd /usr/local/mysql/var/
mv mysql-bin.0000* /home/mysqlbinbak/
/usr/local/mysql/var/mysql-bin.0000* 是mysql运行产生的各种日志,可以直接删除,为了保险起见,我把日志文件移动到 /home目录(因为/home是另一个磁盘,所以不会占用mysql日志所在的磁盘空间)
mysql日志关闭方法:
mysql-bin.0000*日志是用于分布式同步使用的,如果只有一台机器完全可以关闭该日志输出
vim /etc/my.cnf
注释 #log-bin=mysql-bin 即可。
Centos6 下 Mysql启动提示 Starting MySQL. ERROR! The server quit without updating PID file
环境说明
问题描述
[root@LNMP ~]# /etc/init.d/MysqL start Starting MysqL. ERROR! The server quit without updating PID file (/usr/local/MysqL/var/LNMP.pid).
root@LNMP var]# tail -f /usr/local/MysqL/var/LNMP.err /usr/local/MysqL/bin/MysqLd: Can't create/write to file '/tmp/ibJb9vcs' (Errcode: 13) 161201 8:45:41 InnoDB: Error: unable to create temporary file; errno: 13 161201 8:45:41 [ERROR] Plugin 'InnoDB' init function returned error. 161201 8:45:41 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE Failed. 161201 8:45:41 [ERROR] UnkNown/unsupported storage engine: InnoDB 161201 8:45:41 [ERROR] Aborting 161201 8:45:41 [Note] /usr/local/MysqL/bin/MysqLd: Shutdown complete 161201 08:45:41 MysqLd_safe MysqLd from pid file /usr/local/MysqL/var/LNMP.pid ended
解决办法
root@LNMP var]# chmod 777 /tmp
再次启动MysqL,MysqL正常启动!
[root@LNMP var]# /etc/init.d/MysqL restart ERROR! MysqL server PID file Could not be found! Starting MysqL.. SUCCESS! [root@LNMP var]# ps -ef | grep MysqL root 5305 1 0 08:49 pts/0 00:00:00 /bin/sh /usr/local/MysqL/bin/MysqLd_safe --datadir=/usr/local/MysqL/var --pid-file=/usr/local/MysqL/var/LNMP.pid MysqL 5690 5305 1 08:49 pts/0 00:00:00 /usr/local/MysqL/bin/MysqLd --basedir=/usr/local/MysqL --datadir=/usr/local/MysqL/var --plugin-dir=/usr/local/MysqL/lib/plugin --user=MysqL --log-error=/usr/local/MysqL/var/LNMP.err --pid-file=/usr/local/MysqL/var/LNMP.pid --socket=/tmp/MysqL.sock --port=3306 root 5712 1969 0 08:49 pts/0 00:00:00 grep MysqL
CentOS 启动mysql的时候发生的错误 The server quit without updating PID file(…)
可能是/usr/local/MysqL/data/rekfan.pid文件没有写的权限
执行
chown -R MysqL:MysqL /usr/localhost/MysqL/data/* 即可,也就是讲data目录下的权限修改为MysqL
参考本博客
http://blog.rekfan.com/articles/186.html
http://blog.csdn.net/nemo____/article/details/72897455
ERROR! The server quit without updating PID file
Mac os 下采用 brew 装了 mysql 后
mysql.server start
Starting MySQL
. ERROR! The server quit without updating PID file
删除报错文件就可以了!
linux mysql 报错:MYSQL:The server quit without updating PID
mysql 报错:MYSQL:The server quit without updating PID file。以下是可能的原因与解决方法
1.可能是/usr/local/mysql/data/rekfan.pid文件没有写的权限
解决方法 :给予权限,执行 “chown -R mysql:mysql /var/data” “chmod -R 755 /usr/local/mysql/data” 然后重新启动mysqld!
2.可能进程里已经存在mysql进程
解决方法:用命令“ps -ef|grep mysqld”查看是否有mysqld进程,如果有使用“kill -9 进程号”杀死,然后重新启动mysqld!
3.可能是第二次在机器上安装mysql,有残余数据影响了服务的启动。
解决方法:去mysql的数据目录/data看看,如果存在mysql-bin.index,就赶快把它删除掉吧,它就是罪魁祸首了。
4.mysql在启动时没有指定配置文件时会使用/etc/my.cnf配置文件,请打开这个文件查看在[mysqld]节下有没有指定数据目录(datadir)。
解决方法:请在[mysqld]下设置这一行:datadir = /usr/local/mysql/data
5.skip-federated字段问题
解决方法:检查一下/etc/my.cnf文件中有没有没被注释掉的skip-federated字段,如果有就立即注释掉吧。
6.错误日志目录不存在
解决方法:使用“chown” “chmod”命令赋予mysql所有者及权限
7.selinux惹的祸,如果是centos系统,默认会开启selinux
解决方法:关闭它,打开/etc/selinux/config,把SELINUX=enforcing改为SELINUX=disabled后存盘退出重启机器试试。
今天的关于Starting MySQL. ERROR! The server quit without updating PID file如何解决的分享已经结束,谢谢您的关注,如果想了解更多关于Centos6 下 Mysql启动提示 Starting MySQL. ERROR! The server quit without updating PID file、CentOS 启动mysql的时候发生的错误 The server quit without updating PID file(…)、ERROR! The server quit without updating PID file、linux mysql 报错:MYSQL:The server quit without updating PID的相关知识,请在本站进行查询。
本文标签: