【问题标题】:error in start MySql service in install Xammp安装 Xampp 时启动 MySql 服务出错
【发布时间】:2014-12-05 10:28:23
【问题描述】:

我已经安装了 Apache 并在 80 端口启动了 Apache 服务。但是启动 Apache 服务后,MySql 服务没有启动并给我这个错误:

11:53:47 AM  [mysql]    Attempting to start MySQL service...
11:53:47 AM  [mysql]    Status change detected: running
11:53:53 AM  [mysql]    Status change detected: stopped
11:53:53 AM  [mysql]    Error: MySQL shutdown unexpectedly.
11:53:53 AM  [mysql]    This may be due to a blocked port, missing dependencies, 
11:53:53 AM  [mysql]    improper privileges, a crash, or a shutdown by another method.
11:53:53 AM  [mysql]    Press the Logs button to view error logs and check
11:53:53 AM  [mysql]    the Windows Event Viewer for more clues
11:53:53 AM  [mysql]    If you need more help, copy and post this
11:53:53 AM  [mysql]    entire log window on the forums

所以我已经在日志文件中复制了错误:

2014-10-06 19:42:58 6820 [ERROR] Can't start server: Bind on TCP/IP port: No such file or      directory
2014-10-06 19:42:58 6820 [ERROR] Do you already have another mysqld server running on port: 3306 ?

2014-10-06 19:42:58 6820 [ERROR] Aborting

2014-10-06 19:49:17 3392 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
2014-10-06 19:49:17 3392 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2014-10-06 19:49:17 3392 [ERROR] Aborting
2014-10-06 19:55:59 6260 [ERROR] InnoDB: Cannot create D:\xampp1\mysql\data\ib_logfile1
2014-10-06 19:55:59 6260 [ERROR] Plugin 'InnoDB' init function returned error.
2014-10-06 19:55:59 6260 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2014-10-06 19:55:59 6260 [ERROR] Unknown/unsupported storage engine: InnoDB
2014-10-06 19:55:59 6260 [ERROR] Aborting
2014-10-06 19:57:45 7920 [ERROR] InnoDB: space header page consists of zero bytes in data file D:\xampp1\mysql\data\ibdata1
2014-10-06 19:57:45 7920 [ERROR] 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!
2014-10-06 19:57:45 7920 [ERROR] Plugin 'InnoDB' init function returned error.
2014-10-06 19:57:45 7920 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2014-10-06 19:57:45 7920 [ERROR] Unknown/unsupported storage engine: InnoDB
2014-10-06 19:57:45 7920 [ERROR] Aborting
2014-10-06 19:57:58 6240 [ERROR] InnoDB: space header page consists of zero bytes in data file D:\xampp1\mysql\data\ibdata1
2014-10-06 19:57:58 6240 [ERROR] 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!
2014-10-06 19:57:58 6240 [ERROR] Plugin 'InnoDB' init function returned error.
2014-10-06 19:57:58 6240 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2014-10-06 19:57:58 6240 [ERROR] Unknown/unsupported storage engine: InnoDB
2014-10-06 19:57:58 6240 [ERROR] Aborting
2014-10-06 21:10:22 5612 [ERROR] InnoDB: space header page consists of zero bytes in data file D:\xampp1\mysql\data\ibdata1
2014-10-06 21:10:22 5612 [ERROR] 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!
2014-10-06 21:10:22 5612 [ERROR] Plugin 'InnoDB' init function returned error.
2014-10-06 21:10:22 5612 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2014-10-06 21:10:22 5612 [ERROR] Unknown/unsupported storage engine: InnoDB
2014-10-06 21:10:22 5612 [ERROR] Aborting

....... ......

请帮我安装这个网络服务器。 谢谢

【问题讨论】:

    标签: mysql apache xampp


    【解决方案1】:

    停止你的其他 mysql 服务

    打开C:\xampp\mysql\bin\my.ini然后更改端口

    ...
    [mysqld]
    port= 3306    <----- change to another port number
    ...
    

    【讨论】:

    • 我的电脑中有 SQLserver。我没有 MySQL 服务。
    【解决方案2】:

    Apache 使用端口 80,并且该端口已在您的系统中使用(可能您正在使用 Skype)。 为了启动 Apache,请释放系统中的 80 端口。 (从 Skype 或其他使用端口 80 的程序退出)。然后再试一次。

    【讨论】:

    • 错误出现在 Apache 配置中?我认为错误出现在 MySQL 配置中,因为 apache 服务已启动。
    【解决方案3】:

    【讨论】:

    • 当我在浏览器中输入 localhost 时,显示 xammp。但是当我点击 phpmyadmin 时说错误:MySQL 说:文档 #2002 - 由于目标机器主动拒绝,无法建立连接。服务器没有响应(或本地服务器的套接字未正确配置)。配置中定义的 controluser 连接失败。
    猜你喜欢
    • 2020-03-20
    • 2017-05-28
    • 2014-02-20
    • 2023-04-06
    • 2017-04-11
    • 2017-09-27
    • 2012-05-02
    • 2014-12-22
    • 2014-04-16
    相关资源
    最近更新 更多