我已在计算机上安装了 Windows 10 Enterprise 64 位,并尝试在计算机上安装 Apache、PHP 和 MySQL 以用于 Web 开发。简而言之,我不断遇到错误“MySQL 意外关闭”。我尝试在我的计算机上使用 WAMP 和 XAMPP 进行安装,但仍然遇到相同的错误。 Apache 在 WAMP 和 XAMPP 上连接并工作,但是我收到相同的 MySQL 错误。
到目前为止,从我所做的所有研究中,请找到我的情况和我尝试过的解决方案的概要。我认为这与 Windows 10 有关。另外,我在 MacBook 12 英寸上使用 bootcamp,所以不确定这是否会增加问题,但我不会这么认为。
- Apache 在端口 80:433 上运行 XAMPP 和 WAMP
WAMP - Mysql -> 服务,启动/恢复服务为绿色。当我点击它时什么也没有发生。 XAMP 我得到:
8:50:59 AM [mysql] 错误:MySQL 意外关闭。
8:50:59 AM [mysql] 这可能是由于端口阻塞、缺少依赖项造成的,
8:50:59 AM [mysql] 权限不当、崩溃或通过其他方法关闭。
8:50:59 AM [mysql]按日志按钮查看错误日志并检查
8:50:59 AM [mysql] Windows 事件查看器以获取更多线索
8:50:59 AM [mysql]如果您需要更多帮助,请复制并发布此内容
8:50:59 AM [mysql] 论坛上的整个日志窗口
关闭Windows防火墙,同样的错误
4.我已经检查了 Skype,但它实际上没有安装在我的计算机上。还检查了控制面板 -> 查看本地服务,Skype 不存在也不运行在命令提示符中尝试过 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。以及在 my.ini 中附加 innodb_force_recovery = 1。我得到了一个稍微不同的错误,我将其放在下面。
我几乎没有选择,并且即将接受 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
最佳答案
这个解决方案对我有用。
- 卸载 XAMPP 和 WAMP
- 已安装 WAMP 64 位
- 将以下行添加到 my.ini innodb_flush_method=正常
- 关闭 WAMP 并重新启动。标志 W 是绿色的并且正在工作。
感谢:Error 187
关于mysql - Windows 10 企业版 - MYSQL 意外关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31888044/