WAMP 服务器保持离线状态。 MySQL 服务未启动 "could not start the wampmysqld64 service - error 1067"

WAMP Server stays offline. MySQL service not starting "could not start the wampmysqld64 service - error 1067"

我花了几个小时试图获取服务器 运行(第一次),尝试了网上发布的许多解决方案,但都没有成功。

第一次安装(Win 7 x64),灯仍然是橙色(服务器离线)。如果我查看服务,start/resume 服务保持绿色:

如果我进入服务并尝试启动 wampmysqld64 服务,我会收到此错误消息:

这是事件查看器应用程序日志(WAMP mysql 日志为空):

Error   11/09/2015 09:04:22 MySQL   100 None Aborting
Error   11/09/2015 09:04:22 MySQL   100 None Unknown/unsupported storage engine: InnoDB
Error   11/09/2015 09:04:22 MySQL   100 None Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
Error   11/09/2015 09:04:22 MySQL   100 None Plugin 'InnoDB' init function returned error.
Error   11/09/2015 09:04:22 MySQL   100 None InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
Error   11/09/2015 09:04:22 MySQL   100 None InnoDB: space header page consists of zero bytes in data file .\ibdata1
Warning 11/09/2015 09:04:22 MySQL   100 None InnoDB: Doublewrite does not have page_no=0 of space: 0

我没有 removed/deleted 任何文件,但由于 space 限制)。

安装WAMPServer到D:盘就好了

可能这些文件已损坏,请尝试删除它们。

停止 WAMPServer

删除这些文件,因为这是初始安装,它们中不会有任何数据,重新启动 WAMPServer 应该会导致 MYSQL 重新创建它们。

\wamp\bin\mysql\mysql5.6.17\data\ib_logfile0
\wamp\bin\mysql\mysql5.6.17\data\ib_logfile1
\wamp\bin\mysql\mysql5.6.17\data\ibdata1

现在修复一个小错误:编辑\wamp\bin\mysql\mysql5.6.17\my.ini 找到节标记 [wampmysqld] 并将其更改为 [wampmysqld64]

保存my.ini

重新启动 WAMPServer

此外,如果您的内存有点不足,将此参数添加到 [wampmysqld64] 内的 my.ini 文件将减少 MYSQL 内存需求。 MYSQL 的更高版本似乎使用了大量内存(半个 gig),其中很多是 MYISAM 文件的 table_definition_cache,这会将它减少到合理的程度并且不会影响您对 MYISAM 文件的使用.

[wampmysqld64]
table_definition_cache = 600

在我的例子中,我只需要:编辑 \wamp\bin\mysql\mysql5.6.17\my.ini 并找到 [wampmysqld] 部分并将其更改为 [wampmysqld64].

然后我重新启动 mysql 并且成功了!

  1. 如果 mysql 服务未启动打开位于 C:\wamp\bin\mysql\mysql[version]\my.ini

  2. my.ini 文件
  3. 在 3 个位置将端口号更改为 3305:

这里:

#password   = your_password
port        = 3305
socket      = /tmp/mysql.sock

这里:

\# The MySQL server
[wampmysqld]
port        = 3305

这里:

[mysqld]
port=3305
  1. 现在转到 C:\wamp\apps\phpmyadmin[version],找到 config.inc.php 并更改此行:
$cfg['Servers'][$i]['port'] = '3306';

对此:

$cfg['Servers'][$i]['port'] = '3305';

(3305 是您之前选择的端口)。

这些步骤应该让你 MySQL 运行.

对我来说,我意识到我安装了另一个 MySQL 程序(来自 Oracle),它导致了常见的 port-use 冲突。 Uninstall/disable MySQL server/workbench 和其他 MySQL 程序然后重新启动 WAMP。这可能会解决问题,它对我有用。

在安装最新版本之前,我还卸载并删除了旧版本的 WAMP。

WAMP 是一个不太稳定的平台。我建议 XAMPP 而不是 WAMP。 它比 wamp-server 更轻,比 WAMP 更稳定。

好处 -

XAMPP 比 WAMP 更强大,更占用资源。 WAMP 提供对 MySQL 和 PHP 的支持。 XAMPP 提供对 MYSQL、PHP 和 PERL

的支持

XAMPP 也有 SSL 功能,而 WAMP 没有。 如果您的应用程序只需要处理本机 Web 应用程序,请选择 WAMP。如果您需要上述高级功能,请选择 XAMPP.

作为优先级,您不能 运行 与默认安装一起使用,因为 XAMPP 获得更高的优先级并且占用端口。所以 WAMP 不能 运行 与 XAMPP.

并行