mysql 崩溃的原因

mysql 崩溃的原因

cron 作业自动重启了我的 mysql 数据库。崩溃的原因是什么,或者您能建议如何解决或监控吗?

我将非常感谢您的意见。

    120715 14:38:58  mysqld started
120715 14:38:58  InnoDB: Started; log sequence number 0 411137570
120715 14:38:58 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.95'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution
120715 15:14:21 [Note] /usr/libexec/mysqld: Normal shutdown

120715 15:14:23  InnoDB: Starting shutdown...
120715 15:14:25  InnoDB: Shutdown completed; log sequence number 0 411166467
120715 15:14:25 [Note] /usr/libexec/mysqld: Shutdown complete

120715 08:14:25  mysqld ended

120715 08:14:26  mysqld started
120715  8:14:26  InnoDB: Started; log sequence number 0 411166467
120715  8:14:26 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.95'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution
121212 09:15:32  mysqld started
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
121212  9:15:58  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...
121212  9:17:28  InnoDB: Started; log sequence number 0 554145193
121212  9:17:57 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.95'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution

答案1

根据该日志,120715,121212 实际上是服务器日期。

2012 年 12 月 12 日 09:15:32 服务器时间

121212 09:15:32  mysqld started

Mysql 已启动并自动恢复。

我怀疑你的服务器崩溃了。检查你的服务器日志,或者给 Rackspace 打电话或发邮件确认服务器重启时间,时间大约是 2012 年 12 月 12 日上午 9 点(服务器时间)。

如果你需要一些每天上行下行各种服务的报表,常见的选择如下

  1. 日志监视通常配置为提供系统上运行的服务的每日报告。
  2. Nagios + NRPE配置稍微复杂一点,但可以几乎立即发出服务/守护进程中断的警报。

相关内容