首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MySQL未启动,InnoDB不可用

问MySQL未启动,InnoDB不可用
EN

Stack Overflow用户
提问于 2012-01-12 11:36:00
回答 4查看 21.5K关注 0票数 7

客户端的服务器运行的是MySQL 5.0。昨晚服务器自动重启以安装Windows更新。重新启动后,MySQL不想再运行。MySQL日志表明它正常关闭。Windows日志显示该服务无法启动,因为“默认存储引擎(InnoDB)不可用”。在此之前的几年里,MySQL一直运行得很好,最近没有什么变化。

对数据进行每日备份,并且安装目录仍然存在。

如何让MySQL服务再次运行?

编辑:我刚刚注意到data文件夹中的server.err文件中有以下内容:

代码语言:javascript
复制
InnoDB: Error: log file .\ib_logfile0 is of different size 0 10485760 bytes
InnoDB: than specified in the .cnf file 0 25165824 bytes!
120112  5:16:30 [ERROR] Default storage engine (InnoDB) is not available
120112  5:16:30 [ERROR] Aborting
EN

回答 4

Stack Overflow用户

回答已采纳

发布于 2012-01-12 12:41:20

您应该停止mysql服务器,删除日志文件,然后重新启动它。它应该会在之后工作。当然,先做一个备份。如果不起作用,可以尝试通过this链接进行修复。

票数 11
EN

Stack Overflow用户

发布于 2012-11-07 00:05:30

您可以编辑.cnf、搜索innodb_log_file_size参数并设置与ib_logfile0大小匹配的大小(以of为单位)。

C:\MySql\data>目录

24/10/2012 08:47 24.117.248 ib_logfile0

兆加= 24117248 / 1024 / 1024 = 23

innodb_log_file_size=23M

尝试启动该服务的。

票数 3
EN

Stack Overflow用户

发布于 2014-07-19 07:24:08

干得好,Aleksandar Vučetić!

我已经从“mysql/data”中删除了这些文件:

代码语言:javascript
复制
- ib_logfile0
- ib_logfile1
- ibdata1

并重新启动MySQL服务。

MySQL日志显示:

代码语言:javascript
复制
InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
140719  0:57:55  InnoDB: Setting file .\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
140719  0:57:55  InnoDB: Log file .\ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile0 size to 54 MB
InnoDB: Database physically writes the file full: wait...
140719  0:57:56  InnoDB: Log file .\ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile1 size to 54 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
140719  0:57:57  InnoDB: Started; log sequence number 0 0
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8829793

复制
相关文章

相似问题

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