我正在尝试在Windows上启动我的SQL服务
在命令提示符中,我不断收到此错误消息:
ERROR 2003(HY000):无法连接到本地主机上的MySQL服务器' (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
如何解决这个问题?
答案 0 :(得分: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