Home  >  Article  >  Database  >  登录mysql,进程自动结束的一种可能

登录mysql,进程自动结束的一种可能

WBOY
WBOYOriginal
2016-06-07 16:38:321230browse

昨天发现有台服务器mysql挂了,去服务器上看日志,没有发现有任何的error。 http://leo108.com/pid-1927.asp 于是直接启动mysql,但发现一个很神奇的现象,只要一登录Mysql,mysqld进程立马退出,日志里也没有任何error,显示的是normal shutdown。 未经允许

昨天发现有台服务器mysql挂了,去服务器上看日志,没有发现有任何的error。http://leo108.com/pid-1927.asp

于是直接启动mysql,但发现一个很神奇的现象,只要一登录Mysql,mysqld进程立马退出,日志里也没有任何error,显示的是normal shutdown。

未经允许严禁转载

重新编译安装也是一样的问题。没办法,换了台机器搭建了mysql。本文来自leo108's blog

今天我又登录到原来那台服务器上写一段脚本,脚本里面用到了当前时间,结果发现打出来的unix时间戳是142开头的。未经允许严禁转载

立马发现有问题,现在的unix时间戳应该是137开头,用date命令看下,居然是2421年了。

本文来自http://leo108.com

于是联想到mysql的问题可能是因为时间错误导致的。

本文来自http://leo108.com

date -s’2013-07-25 17:29:30′

采集者烂JJ

再启动mysql,登录,正常!采集者烂JJ

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn