首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >数据库连接错误&数据库未正常关闭

问数据库连接错误&数据库未正常关闭
EN

Server Fault用户
提问于 2018-07-03 07:55:54
回答 1查看 1.2K关注 0票数 0

我需要一些wordpress站点数据库错误的解决方案。我一个月前就遇到了这个DB错误。我不知道这个数据库连接错误的原因是什么。请回顾我的error.log提供您的继承。

代码语言:javascript
复制
2018-06-19 15:59:15 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-06-19 15:59:16 4297 [Note] Plugin 'FEDERATED' is disabled.
2018-06-19 15:59:16 4297 [Note] InnoDB: Using atomics to ref count buffer pool pages
2018-06-19 15:59:16 4297 [Note] InnoDB: The InnoDB memory heap is disabled
2018-06-19 15:59:16 4297 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-06-19 15:59:16 4297 [Note] InnoDB: Compressed tables use zlib 1.2.8
2018-06-19 15:59:16 4297 [Note] InnoDB: Using Linux native AIO
2018-06-19 15:59:16 4297 [Note] InnoDB: Using CPU crc32 instructions
2018-06-19 15:59:16 4297 [Note] InnoDB: Initializing buffer pool, size = 1.0G
2018-06-19 15:59:16 4297 [Note] InnoDB: Completed initialization of buffer pool
2018-06-19 15:59:16 4297 [Note] InnoDB: Highest supported file format is Barracuda.
2018-06-19 15:59:16 4297 [Note] InnoDB: The log sequence numbers 50223779105 and 50223779105 in ibdata files do not match the log sequence number 50225310342 in the ib_logfiles!
2018-06-19 15:59:16 4297 [Note] InnoDB: Database was not shutdown normally!
2018-06-19 15:59:16 4297 [Note] InnoDB: Starting crash recovery.
2018-06-19 15:59:16 4297 [Note] InnoDB: Reading tablespace information from the .ibd files...
EN

回答 1

Server Fault用户

发布于 2018-07-03 10:07:39

首先检查您所在服务器的正常运行时间,因为某些原因您的服务器正在重新启动,如果正常运行时间,那么您需要检查是否有任何HDD或内存问题,检查错误块或ram错误。

您可以尝试使用"mysqlcheck -自动修复-o -所有数据库“修复mysql数据库/表。

您应该添加一个cron作业来每天备份数据,万一mysql恢复失败,则可以恢复。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/919279

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档