我已经在机器上安装了Windows 10 Enterprise 64bit,并尝试在我的机器上安装Apache,PHP和MySQL以用于Web开发。总之,我一直遇到错误" MySQL意外关闭"。我试图在我的机器上使用WAMP和XAMPP进行安装,但仍然遇到同样的错误。 Apache连接并在WAMP和XAMPP上工作但是我得到了相同的MySQL错误。
到目前为止,我已经完成了所有的研究,请查看我的情况和我尝试过的解决方案的概要。我认为这与Windows 10有关。另外作为旁注,我在我的MacBook 12英寸上使用bootcamp,所以不确定这是否会增加问题,但我不会这么想。
WAMP - Mysql - >服务,启动/恢复服务是绿色的。当我点击它时没有任何反应。 XAMP我得到了:
8:50:59 AM [mysql]错误:MySQL意外关闭。
8:50:59 AM [mysql]这可能是由于端口被阻塞,缺少依赖关系,
8:50:59 AM [mysql]不正当的权限,崩溃或其他方法的关闭。
8:50:59 AM [mysql]按Logs按钮查看错误日志并检查
上午8:50:59 [mysql] Windows事件查看器获取更多线索
8:50:59 AM [mysql]如果您需要更多帮助,请复制并发布此
上午8:50:59 [mysql]论坛上的整个日志窗口
关闭Windows防火墙,同样的错误
4.我已检查过Skype,但实际上并未安装在我的机器上。还检查了控制面板 - >查看本地服务,skype不在那里,也没有在命令提示符下运行Tried netstat -b,我看不到端口80的任何内容。还尝试了netstat -aon | findstr:80,只有TCP 192.168.0.10:49556 23.205.116.42:80 ESTABLISHED 1884.注意:如果端口是一个问题Apache不应该工作
我检查了控制面板 - >查看本地服务没有万维网发布服务。
Xamp-Mysql Shutdown中的后续解决方案,其中包括删除ib_logfile1,ib_logfile和ibdata1。以及使用innodb_force_recovery = 1附加my.ini。我得到了一个稍微不同的错误,我将其放在下面。
我几乎没有选择,并且即将提出MySQL可能无法在我的Windows 10机器上运行的事实。但在我做任何帮助之前,我们将不胜感激。
错误日志:
2015-08-08 08:31:08 7024 [Note] Plugin 'FEDERATED' is disabled.
2015-08-08 08:31:08 18ec InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2015-08-08 08:31:08 7024 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-08-08 08:31:08 7024 [Note] InnoDB: The InnoDB memory heap is disabled
2015-08-08 08:31:08 7024 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-08-08 08:31:08 7024 [Note] InnoDB: Memory barrier is not used
2015-08-08 08:31:08 7024 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-08-08 08:31:08 7024 [Note] InnoDB: Not using CPU crc32 instructions
2015-08-08 08:31:08 7024 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-08-08 08:31:08 7024 [Note] InnoDB: Completed initialization of buffer pool
2015-08-08 08:31:08 7024 [Note] InnoDB: Highest supported file format is Barracuda.
2015-08-08 08:31:08 18ec InnoDB: Operating system error number 87 in a file operation.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html
2015-08-08 08:31:08 7024 [ERROR] InnoDB: File C:\wamp\mysql\data\ib_logfile0: 'aio read' returned
错误记录@ innodb_force_recovery = 1
2015-08-08 09:32:05 3804 [Note] Plugin 'FEDERATED' is disabled.
2015-08-08 09:32:05 1bf8 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2015-08-08 09:32:05 3804 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-08-08 09:32:05 3804 [Note] InnoDB: The InnoDB memory heap is disabled
2015-08-08 09:32:05 3804 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-08-08 09:32:05 3804 [Note] InnoDB: Memory barrier is not used
2015-08-08 09:32:05 3804 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-08-08 09:32:05 3804 [Note] InnoDB: Not using CPU crc32 instructions
2015-08-08 09:32:05 3804 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-08-08 09:32:05 3804 [Note] InnoDB: Completed initialization of buffer pool
2015-08-08 09:32:05 3804 [Note] InnoDB: The first specified data file C:\xampp\mysql\data\ibdata1 did not exist: a new database to be created!
2015-08-08 09:32:05 3804 [Note] InnoDB: Setting file C:\xampp\mysql\data\ibdata1 size to 10 MB
2015-08-08 09:32:05 3804 [Note] InnoDB: Database physically writes the file full: wait...
2015-08-08 09:32:05 3804 [Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile101 size to 5 MB
2015-08-08 09:32:05 3804 [Note] InnoDB: Setting log file C:\xampp\mysql\data\ib_logfile1 size to 5 MB
2015-08-08 09:32:05 1bf8 InnoDB: Operating system error number 87 in a file operation.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html
2015-08-08 09:32:05 3804 [ERROR] InnoDB: File C:\xampp\mysql\data\ib_logfile101: 'aio write' returned OS error 187. Cannot continue operation
答案 0 :(得分:0)
这个解决方案对我有用。
感谢您:Error 187