2015-08-30 54 views
0

我试图启动Windowsmysql服务在Windows doesent工作7

在命令提示符下我的SQL服务我公司不断有这样的错误消息:

ERROR 2003(HY000):不能连接到MySQL服务器上的 'localhost'(10061)

在SQL日志文件中我得到了以下

2015-08-31 00:53:41 5348 [Note] Plugin 'FEDERATED' is disabled. 
2015-08-31 00:53:41 5348 [Note] InnoDB: Using atomics to ref count buffer pool pages 
2015-08-31 00:53:41 5348 [Note] InnoDB: The InnoDB memory heap is disabled 
2015-08-31 00:53:41 5348 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 
2015-08-31 00:53:41 5348 [Note] InnoDB: Compressed tables use zlib 1.2.3 
2015-08-31 00:53:41 5348 [Note] InnoDB: Not using CPU crc32 instructions 
2015-08-31 00:53:41 5348 [Note] InnoDB: Initializing buffer pool, size = 128.0M 
2015-08-31 00:53:41 5348 [Note] InnoDB: Completed initialization of buffer pool 
2015-08-31 00:53:42 5348 [Note] InnoDB: The first specified data file .\ibdata1 did not exist: a new database to be created! 
2015-08-31 00:53:42 5348 [Note] InnoDB: Setting file .\ibdata1 size to 12 MB 
2015-08-31 00:53:42 5348 [Note] InnoDB: Database physically writes the file full: wait... 
2015-08-31 00:53:42 5348 [ERROR] InnoDB: Cannot create .\ib_logfile101 
2015-08-31 00:53:42 5348 [ERROR] Plugin 'InnoDB' init function returned error. 
2015-08-31 00:53:42 5348 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 
2015-08-31 00:53:42 5348 [ERROR] Unknown/unsupported storage engine: InnoDB 
2015-08-31 00:53:42 5348 [ERROR] Aborting 

这个问题怎么解决?

+1

*无法创建。\ ib_logfile101 *没有描述太多,但作为一个疯狂的猜测,MySql服务帐户是否具有对该位置的写入权限? – Alejandro

回答

1

请在删除任何文件前进行备份。

您需要清理重播日志。 -ib_logfile0 -ib_logfile1 -ibdata1

请参阅以下与之相关的帖子。 在windows上,这个文件可能位于xampp \ mysql \ data目录下。

http://www.debian-tutorials.com/how-to-fix-error-unknownunsupported-storage-engine-innodb

请大家注意,这可能意味着你必须禁用InnoDB的。这是你真正想要的。

检查你的my.inf文件。你可以在这里打开或关闭Innodb支持。

[mysqld] 
innodb=OFF 
ignore-builtin-innodb 
skip-innodb 
default-storage-engine=myisam 
default-tmp-storage-engine=myisam 
+0

不错的答案crafter。良好的支持。 – Drew

+0

我使用wamp而不是xampp。当我打开我的my.ini文件时,我发现只有这样:[mysqld] port = 3306 explicit_defaults_for_timestamp = TRUE – pentanol

+0

@pentanol,所以问题在于你有InnoDB支持以某种方式被禁用,并且你的数据/重放日志文件交付, MySQL不能启动数据库,因为InnoDb不受支持。所以你要么删除这些文件,要么启用对innoDb的支持 - 你的选择。 – crafter