【问题标题】:WAMP 3 new installation tried everythingWAMP 3 新安装尝试了一切
【发布时间】:2017-01-05 20:22:04
【问题描述】:

今天我决定在 Windows 10 上重新安装 WAMP。

这是多么大的错误,在新安装的 WAMP 图标保持橙色之后。

我在谷歌上搜索了几个小时,尽我所能,没有任何帮助,图标保持橙色。

我检查了 mySql 错误日志,我得到了这个:

2016-08-29T17:43:19.636578Z 0 [Warning] InnoDB: New log files created, LSN=45790
2016-08-29T17:43:22.277335Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
wampmysqld64: Table 'mysql.plugin' doesn't exist
2016-08-29T17:43:22.449217Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2016-08-29T17:43:22.449217Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 148b018e-6e10-11e6-aca6-a45d36c709dc.
2016-08-29T17:43:22.511719Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2016-08-29T17:43:22.527346Z 0 [Warning] Failed to open optimizer cost constant tables

2016-08-29T17:43:22.527346Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
2016-08-29T17:43:22.527346Z 0 [ERROR] Aborting

这是我所做的:

我卸载了旧的 Wamp。

我将 wamp 目录的名称更改为:wampOld

我检查了我的服务,上面没有 mysql 或 apache

我安装了所有需要的 VC 包(作为管理员):

我在 Windows 上检查了 IIS,对我来说看起来不错: Web 管理工具及其下的所有内容均未勾选。

我安装了 WAMP(以管理员身份)(wampserver3.0.4_x64_apache2.4.18_mysql5.7.11_php5.6.19-7.0.4)

我测试了 80 端口:

    ***** Test which uses port 80 *****
    ===== Tested by command netstat filtered on port 80 =====
    Test for TCP
    Your port 80 is used by a processus with PID = 4180
    The processus of PID 4180 is 'httpd.exe' Session: Services
    The service of PID 4180 for 'httpd.exe' is 'wampapache64'
    This service is from Wampserver - It is correct

    Test for TCPv6
    Your port 80 is used by a processus with PID = 4180
    The processus of PID 4180 is 'httpd.exe' Session: Services
    The service of PID 4180 for 'httpd.exe' is 'wampapache64'
    This service is from Wampserver - It is correct

    ===== Tested by attempting to open a socket on port 80 =====

    Your port 80 is actually used by :

    Server: Apache/2.4.18 (Win64) PHP/5.6.19

Apache 错误日志:

[Mon Aug 29 19:43:18.777165 2016] [auth_digest:notice] [pid 4180:tid 496] AH01757: generating secret for digest authentication ...
[Mon Aug 29 19:43:18.839665 2016] [mpm_winnt:notice] [pid 4180:tid 496] AH00455: Apache/2.4.18 (Win64) PHP/5.6.19 configured -- resuming normal operations
[Mon Aug 29 19:43:18.839665 2016] [mpm_winnt:notice] [pid 4180:tid 496] AH00456: Apache Lounge VC14 Server built: Dec  9 2015 11:13:29
[Mon Aug 29 19:43:18.839665 2016] [core:notice] [pid 4180:tid 496] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.18\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.18'
[Mon Aug 29 19:43:18.870917 2016] [mpm_winnt:notice] [pid 4180:tid 496] AH00418: Parent: Created child process 6408
[Mon Aug 29 19:43:19.480326 2016] [auth_digest:notice] [pid 6408:tid 432] AH01757: generating secret for digest authentication ...
[Mon Aug 29 19:43:19.558450 2016] [mpm_winnt:notice] [pid 6408:tid 432] AH00354: Child: Starting 64 worker threads.

Apache 访问日志:

127.0.0.1 - - [29/Aug/2016:19:43:51 +0200] "GET / HTTP/1.1" 200 5145

安装后我的服务如下所示:

我的 hosts 文件中有以下 2 个条目: 127.0.0.1 本地主机 ::1 本地主机

Nada,WAMP 保持橙色。

已卸载,而是安装了 32 版。还是橙色,在 mysql.log 中得到了这个:

2016-08-29T20:00:38.680630Z 0 [Warning] InnoDB: New log files created, LSN=45790
2016-08-29T20:00:42.132996Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
wampmysqld: Table 'mysql.plugin' doesn't exist
2016-08-29T20:00:42.566098Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2016-08-29T20:00:42.590113Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 440b9e23-6e23-11e6-ba24-a45d36c709dc.
2016-08-29T20:00:42.703794Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2016-08-29T20:00:43.016750Z 0 [Warning] Failed to open optimizer cost constant tables

2016-08-29T20:00:43.020753Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
2016-08-29T20:00:43.021754Z 0 [ERROR] Aborting

wampmysqld: Table 'mysql.plugin' doesn't exist
2016-08-29T20:01:02.323383Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2016-08-29T20:01:02.326385Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2016-08-29T20:01:02.328387Z 0 [Warning] Failed to open optimizer cost constant tables

2016-08-29T20:01:02.330389Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
2016-08-29T20:01:02.331389Z 0 [ERROR] Aborting

wampmysqld: Table 'mysql.plugin' doesn't exist
2016-08-29T20:01:26.201624Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2016-08-29T20:01:26.203625Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2016-08-29T20:01:26.206627Z 0 [Warning] Failed to open optimizer cost constant tables

2016-08-29T20:01:26.208630Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
2016-08-29T20:01:26.210631Z 0 [ERROR] Aborting

我错过了什么????

【问题讨论】:

  • 看起来旧的安装仍在服务下运行。尝试将其删除或尝试在另一个端口(如 8080)上运行您的新安装
  • 谢谢 VikingBlodded,能帮我把它拿出来吗?
  • 我尝试运行:sc delete wampmysqld64 in cmd。说卸载成功。在服务中,它仍然显示启动类型:已禁用。我重新启动了 WAMP,仍然是 Organe
  • 您是否以管理员身份运行 WAMPServer?需要以管理员身份运行,否则无法访问某些文件,无法启动服务
  • 是的,我是 RiggsFolly

标签: wamp wampserver


【解决方案1】:

我通过删除(或重命名)目录解决了这个问题

C:\wamp64\bin\mysql\mysql5.7.21\data

然后执行

./mysqld --initialize-insecure

来自

C:\wamp64\bin\mysql\mysql5.7.21\bin

【讨论】:

    【解决方案2】:

    解决办法是:

    安装 WAMP 2.5

    运行从 2.5 到 3 的升级文件。

    终于成功了

    【讨论】:

      【解决方案3】:

      无论何时安装 WAMP,请将其安装在新文件夹中。
      对于 Visual C 发行版,请从http://wampserver.aviatechno.net 下载以下 Visual C++ Redistributable Packages:

      Microsoft VC++ 包 x86(32 位)

      • VC 2008 SP1 包 (x86) MD5
      • VC 2008 SP1 ATL 包 (x86) MD5
      • VC 2008 SP1 MFC 包 (x86) MD5
      • VC 2010 SP1 包 (x86) MD5
      • VC 2012 更新 4 (x86) MD5
      • VC 2013 打包 5 (x86) MD5
      • VC 2015-2019 (VC16 x86) 14.22.27821 MD5

      还有:

      • VC 2008 SP1 包 (x64) MD5
      • VC 2008 SP1 ATL 包 (x64) MD5
      • VC 2008 SP1 MFC 包 (x64) MD5
      • VC 2010 SP1 包 (x64) MD5
      • VC 2012 向上 4 (x64) MD5
      • VC 2013 向上 5 (x64) MD5
      • VC 2015-2019 (VC16 x64) 14.22.27821 MD5

      替代方法是下载以下内容:

      Microsoft VC 包 VC2008、2010、2012、2013、2015-2019 zip 文件

      • 所有 VC 可再发行包 (x86) (32bits) MD5
      • 所有 VC 可再发行包 (x86_x64)(32 位和 64 位)MD5

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-09-19
        • 2021-07-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-06-07
        相关资源
        最近更新 更多