Starting MySQL... ERROR! The server quit without updating PID file (/mydata/data/t1.pid).

测试环境:

mysql 5.6.25 (适用5.1.73 5.1.65)

1

vim /etc/my.cnf

pid-file=/mypid/t1.pid

今天在备份的时候,我测试把mysql-log.index删除之后报错如下:

[root@t1 data]# /etc/init.d/mysqld start
Starting MySQL... ERROR! The server quit without updating PID file (/mydata/data/t1.pid).

2 、

我还原 mysql-log.index 

重新 service mysqld start 

报错:Starting MySQL... ERROR! The server quit without updating PID file (/mydata/data/t1.pid).

3.1 测试:

 1.1

刚开始注册(未改动):

log-bin=mysql.log

1.2

为了增量备份(改动后):

log-bin=/var/lib/mysql/mysql-bin.log

启动。

报错:Starting MySQL... ERROR! The server quit without updating PID file (/mydata/data/t1.pid).

1.3 

再次修改(为原路径):

log-bin=mysql.log

再次启动,成功。

[root@localhost data]# /etc/init.d/mysqld start
Starting MySQL. ERROR! The server quit without updating PID file (/mydata/data/localhost.localdomain.pid).
[root@localhost data]# vim /etc/my.cnf 
[root@localhost data]# ls /binlog/
[root@localhost data]# vim /etc/my.cnf 
[root@localhost data]# chown -R mysql.mysql /binlog/
[root@localhost data]# /etc/init.d/mysqld start

修改了my.cnf里面的binlog路径,必须给binlog路径授权,不然,数据库根本不能启动。切记。

3、

我禁用:

vim /etc/my.cnf

#pid-file=/mypid/t1.pid
重新 service mysqld start 

OK 

然后查找,mysql-log.index 生成了一个新的。

当不小心删除mysql-log.index   mysql-log.00001 mysql-log.00002 文件的时候,如果要启动mysqld 必须禁用pid-file选项在my.cnf里面。

时间: 2024-08-25 17:58:27

Starting MySQL... ERROR! The server quit without updating PID file (/mydata/data/t1.pid).的相关文章

Starting MySQL. ERROR! The server quit without updating PID file (/data/mysql/mysql.pid).

  mysql重启导致出现以下错误:      Starting MySQL. ERROR! The server quit without updating PID file (/data/mysql/mysql.pid).             删除ibdata1.ib_logfile* 相关文件   删除之前先备份     使用命令重启:           /usr/local/mysql/support-files/mysql.server start --user=mysql --

Starting MySQL. ERROR! The server quit without updating PID file

前台开启: [root@t1 x]# service mysqld start Starting MySQL. ERROR! The server quit without updating PID file (/mydata/data/t1.pid). 后台告警日志显示: err文件表示: 160316 02:33:39 mysqld_safe Starting mysqld daemon with databases from /mydata/data 2016-03-16 02:33:40

linux中Starting MySQL.. ERROR! The server quit without updating PID file 错误

Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/var/***.pid) 今天重启服务器或者lnmp服务的时候出现了上面的提示,摸索了半天,就是之前手动删了mysql的日志文件出的问题,解决办法就是直接把mysql的日志关了,然后就能正常启动了. 关闭lnmp的mysql日志如下: 如何关闭MySQL的日志功能: 删除日志: 执行:/usr/local/mysql/bin/my

mysql启动时报错:Starting MySQL... ERROR! The server quit without updating PID file (/opt/mysql/data/mysql.pid) 的解决方法

出现问题的可能性 1.可能是/opt/mysql/data/数据目录mysql用户没有权限(修改数据目录的权限)    解决方法 :给予权限,执行  "chown -R mysql.mysql /opt/mysql/data"  然后重新启动mysqld   2.可能进程里已经存在mysql进程    解决方法:用命令"ps -ef|grep mysqld"查看是否有mysqld进程,如果有使用"kill -9  进程号"杀死,然后重新启动mys

MySQL提示:The server quit without updating PID file问题的解决办法

MySQL提示:The server quit without updating PID file问题的解决办法 mysql 5.5  centos 6.5  The server quit without updating PID file /opt/mysql/t1.pid 排除思路: 定位是mysql my.cnf里面出问了. 查看mysql错误日志,主机名.err  可以使用find查找. 160308 11:57:49 mysqld_safe mysqld from pid file

Starting MySQL.Manager of pid-file quit without updating file.[FAILED]

Starting MySQL...... ERROR! Manager of pid-file quit without updating file. 可选拍错思路: my.cnf 配置文件参数错误. 刚装完MySQL,启动时报如下错误: Starting MySQL.Manager of pid-file quit without updating file.[FAILED] 依次尝试了从谷姐找到的各种方法,发现只要执行如下MySQL初始化命令即可解决: 1 /usr/local/mysql/

MySQL启动错误Starting MySQL.Manager of pid-file quit without updating file.[FAILED]

上午刚装完MySQL,启动时报如下错误: Starting MySQL.Manager of pid-file quit without updating file.[FAILED] 依次尝试了从谷姐找到的各种方法,发现只要执行如下MySQL初始化命令即可解决: /usr/local/mysql/bin/mysql_install_db --user=mysql 下面附上从谷姐找到的解决此问题的方法集锦,也许每个人遇到的问题的原因会不一样,经供参考: 一.查看报错日志 报错日志是我们解决问题的方

Starting MySQL.Manager of pid-file quit without updating file.[FAILED]的解决方法_Mysql

因为硬盘满了,mysql启动不起来了. 登录上去看了一下,发现原因. 删除mysql的日志文件,重启mysql发现错误:Starting MySQL.Manager of pid-file quit without updating file.[FAILED] 网上有不少这个原因的解释,但是都不是我想说的.我要说的原因其实很白痴:data/mysql-bin.index没有删除,data/mysql-bin.index是存放日志文件索引的文件,只删除了日志文件而没有对日志的索引文件做处理显然是不

[解决方法]MySql提示:The server quit without updating PID file(…)失败

[http://blog.rekfan.com/articles/186.html] 今天网站web页面提交内容到数据库,发现出错了,一直提交不了,数找了下原因,发现数据写不进去!第一反应,重启mysql数据库,一直执行中,停止不了也启动不了,直觉告诉我磁盘满了 !用df命令查了下,果然磁盘满了,因为当时分区采用系统默认,不知道为什么不能自动扩容!以后在处理这个问题!如图所示: [root@rekfan ~]# df 文件系统                 1K-块      已用