这两天打开博客总显示建立数据库连接时出错
,头两次手动重启了一下。结果今天又发生类似事情,知道肯定是数据库出现了问题,于是查看了MariaDB
日志/var/log/mariadb/mariadb.log
。
通过日志, 可以看到是由于内存不足所导致的数据库崩溃:
170902 4:21:18 [ERROR] Plugin 'InnoDB' init function returned error.
170902 4:21:18 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
170902 4:21:18 [ERROR] mysqld: Out of memory (Needed 128917504 bytes)
170902 4:21:18 [Note] Plugin 'FEEDBACK' is disabled.
170902 4:21:18 [ERROR] Unknown/unsupported storage engine: InnoDB
170902 4:21:18 [ERROR] Aborting
170902 4:21:18 [Note] /usr/libexec/mysqld: Shutdown complete
[ 查看全文... ]