简体   繁体   English

错误! 服务器退出而不更新PID文件

[英]ERROR! The server quit without updating PID file

I´ve seen this question in another post, but I have one diference: 我在另一篇文章中看到了这个问题,但我有一个不同之处:

I´m triyng to follow the instructions in https://www.telepieza.com/wordpress/2008/03/13/replicar-bases-de-datos-mysql-en-servidores-locales-o-remotos/ 我会按照https://www.telepieza.com/wordpress/2008/03/13/replicar-bases-de-datos-mysql-en-servidores-locales-o-remotos/中的说明进行操作

But my in my server originally the line: #log-bin=mysql-bin is commented (#) 但是我原来在我的服务器上的这一行: #log-bin=mysql-bin被注释(#)

If I let the line without the # and restarts the MySql the service doesn´t start and shows the error: 如果我让没有#的行重新启动MySql,则服务不会启动并显示错误:

ERROR! MySQL server PID file could not be found!
Starting MySQL.. ERROR! The server quit without updating PID file (/var/lib/mysql/xxxxxx.pid).

Thanks for your help 谢谢你的帮助

----------------- Added for the coments: -----------------增加了以下内容:

在此处输入图片说明 2017 Log 2017年日志

In your error log, I see the error that it can't find the binary log file it expects to find. 在您的错误日志中,我看到了一个错误,它找不到它期望找到的二进制日志文件。 So some or all of your binary log files expired or got deleted or something. 因此,您的某些或所有二进制日志文件已过期或被删除或其他原因。 But there's still some reference to mysql-bin.000019 in mysql-bin.index. 但是在mysql-bin.index中仍然有一些对mysql-bin.000019的引用。

I checked your screenshot you had posted previously and I see your mysql-bin.index is dated 2017-05-18. 我检查了您之前发布的屏幕快照,发现您的mysql-bin.index日期为2017-05-18。 So it's three months out of date anyway. 所以无论如何已经过了三个月。 I would guess someone deleted the old binary logs to save space, but didn't think to delete the binlog index file. 我猜想有人删除了旧的二进制日志以节省空间,但没有想到要删除binlog索引文件。

If you want to start over with a clean slate of binary log files, just remove all your mysql-bin.* files (including mysql-bin.index), and then start mysqld. 如果要重新整理二进制日志文件,只需删除所有mysql-bin。*文件(包括mysql-bin.index),然后启动mysqld。 The startup will automatically create new binary logs, starting with mysql-bin.000001. 启动将从mysql-bin.000001开始自动创建新的二进制日志。

Note that if you have any replication slaves depending on this instance as their master, you'll have to reinitialize them with a new backup and the new binlog filename. 请注意,如果有任何复制从属作为此实例的主实例,则必须使用新的备份和新的binlog文件名将它们重新初始化。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 启动时出现Mysql server 8错误:“服务器退出但未更新PID文件” - Mysql server 8 error at startup: “The server quit without updating PID file” MySQL 服务器启动错误“服务器退出而不更新 PID 文件” - MySQL server startup error 'The server quit without updating PID file' 错误! 服务器退出而不更新 PID 文件 - Mysql 服务器未启动 - ERROR! The server quit without updating PID file - Mysql server not starting MySQL启动错误'ERROR! 服务器退出而不更新PID文件' - MySql startup error ' ERROR! The server quit without updating PID file' 错误! 服务器退出而不更新PID文件XAMPP - ERROR! The server quit without updating PID file XAMPP mysql错误! 服务器退出,而不用brew安装更新PID文件 - mysql ERROR! The server quit without updating PID file with brew installation ZEND + MAC + MYSQL =错误! 服务器退出而不更新PID文件 - ZEND + MAC + MYSQL = ERROR! The server quit without updating PID file MySQL错误“服务器退出但未更新PID文件” - MySQL Error “The server quit without updating PID file” 错误! 服务器退出而不更新 El captian 上的 PID 文件 - ERROR! The server quit without updating PID file on El captian 正在启动MySQL…错误! 服务器退出而不更新PID文件 - Starting MySQL … ERROR! The server quit without updating PID file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM