近期在登录自己博客时,老是报数据库连接失败,然后重启服务器就好了。
但是,重启服务器很耗时间,不方便,不能每次都重启吧
于是远程连接服务器看了一下
原来是数据库服务挂掉了
启动时还报错
于是查看了下错误日志
2016-11-09 08:13:11 12604 [Note] Plugin 'FEDERATED' is disabled.
2016-11-09 08:13:11 12604 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-11-09 08:13:11 12604 [Note] InnoDB: The InnoDB memory heap is disabled
2016-11-09 08:13:11 12604 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-11-09 08:13:11 12604 [Note] InnoDB: Memory barrier is not used
2016-11-09 08:13:11 12604 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-11-09 08:13:11 12604 [Note] InnoDB: Using Linux native AIO
2016-11-09 08:13:11 12604 [Note] InnoDB: Using CPU crc32 instructions
2016-11-09 08:13:11 12604 [Note] InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: m