客户端的服务器运行的是MySQL 5.0。昨晚服务器自动重启以安装Windows更新。重新启动后,MySQL不想再运行。MySQL日志表明它正常关闭。Windows日志显示该服务无法启动,因为“默认存储引擎(InnoDB)不可用”。在此之前的几年里,MySQL一直运行得很好,最近没有什么变化。
对数据进行每日备份,并且安装目录仍然存在。
如何让MySQL服务再次运行?
编辑:我刚刚注意到data文件夹中的server.err文件中有以下内容:
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发布于 2012-01-12 12:41:20
您应该停止mysql服务器,删除日志文件,然后重新启动它。它应该会在之后工作。当然,先做一个备份。如果不起作用,可以尝试通过this链接进行修复。
发布于 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
尝试启动该服务的。
发布于 2014-07-19 07:24:08
干得好,Aleksandar Vučetić!
我已经从“mysql/data”中删除了这些文件:
- ib_logfile0
- ib_logfile1
- ibdata1并重新启动MySQL服务。
MySQL日志显示:
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 0https://stackoverflow.com/questions/8829793
复制相似问题