gpt4 book ai didi

Mysql一天死机几次

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:34:45 26 4
gpt4 key购买 nike

我在 CentOS 6.5 上看到了同样的东西,而我在 6.4 或更早版本上没有看到。这是 MySQL 5.1.71。CentOS 关闭后,来自正在运行的 mysqld 的套接字文件未被清除,并保留在重新启动时。

在我的 /etc/my.cnf 中我有:

socket=/var/lib/mysql/mysql.sock

即使 ps 显示没有运行 mysqld,文件/var/lib/mysql/mysql.sock 存在。我的解决方法是以 root 身份删除该文件,然后我就可以用

启动 mysql

服务 mysqld 启动

但是,mysql.sock 文件没有被正确清理

服务 mysqld 停止

所以肯定和CentOS 6.5的关机或者MySQL的响应有关。

刚才我又遇到了一次崩溃。这是最后的日志

140124 20:28:07 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:17 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:19 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:19 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:19 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:19 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:19 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:19 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:19 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:19 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:19 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:19 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:19 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:19 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:19 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:19 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:28:19 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:57:49 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:58:06 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:58:06 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:58:06 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:58:06 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:58:06 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:58:06 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:58:06 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:58:06 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:58:06 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:58:06 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:58:06 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 20:58:06 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:56 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:56 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:56 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:56 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:56 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:56 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:56 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:56 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:56 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:57 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:57 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:57 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:57 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:57 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:57 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:57 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:57 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:57 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:57 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:57 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:57 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:57 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:01:57 [ERROR] /usr/libexec/mysqld: Got an error writing communication packets
140124 21:33:42 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140124 21:33:42 InnoDB: Initializing buffer pool, size = 8.0M
140124 21:33:42 InnoDB: Completed initialization of buffer pool
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
140124 21:33:42 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
140124 21:33:43 InnoDB: Started; log sequence number 0 16909546
140124 21:33:43 [Note] Event Scheduler: Loaded 0 events
140124 21:33:43 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.71' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution

所以正如我之前写的,如果我删除 mysql.sock 我可以再次启动 mysql,但这是临时解决方案,因为一段时间后它会再次崩溃。有什么建议可以一劳永逸地解决吗?

最佳答案

使用 TCP/IP 而不是使用 FIFO

关于Mysql一天死机几次,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21344099/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com