【问题标题】:Unable to start MySql as a service on a wnidows 7 machine无法在 Windows 7 机器上启动 MySql 作为服务
【发布时间】:2013-10-20 04:13:04
【问题描述】:

我是 MYsql 新手,已下载 mysql-installer-community-5.6.14.0 并尝试安装。 但是这个过程在配置步骤停止了。我尝试谷歌搜索 2 天,但无法找到解决方案。我已将 mysql 作为 Windows 服务作为本地系统服务运行,当我尝试启动它时,pc.err 文件中出现以下错误

2013-10-20 09:28:40 3312 [Note] Plugin 'FEDERATED' is disabled.
2013-10-20 09:28:40 3312 [Warning] option 'innodb-autoextend-increment': unsigned value 67108864 adjusted to 1000
2013-10-20 09:28:40 1974 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.
2013-10-20 09:28:40 3312 [Note] InnoDB: The InnoDB memory heap is disabled
2013-10-20 09:28:40 3312 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2013-10-20 09:28:40 3312 [Note] InnoDB: Compressed tables use zlib 1.2.3
2013-10-20 09:28:40 3312 [Note] InnoDB: Not using CPU crc32 instructions
2013-10-20 09:28:40 3312 [Note] InnoDB: Initializing buffer pool, size = 200.0M
2013-10-20 09:28:40 3312 [Note] InnoDB: Completed initialization of buffer pool
2013-10-20 09:28:40 3312 [Note] InnoDB: Highest supported file format is Barracuda.
2013-10-20 09:28:41 3312 [Note] InnoDB: 128 rollback segment(s) are active.
2013-10-20 09:28:41 3312 [Note] InnoDB: Waiting for purge to start
2013-10-20 09:28:41 3312 [Note] InnoDB: 5.6.14 started; log sequence number 1626017
2013-10-20 09:28:41 3312 [Note] Server hostname (bind-address): '*'; port: 3306
2013-10-20 09:28:41 3312 [Note] IPv6 is available.
2013-10-20 09:28:41 3312 [Note]   - '::' resolves to '::';
2013-10-20 09:28:41 3312 [Note] Server socket created on IP: '::'.
**2013-10-20 09:28:41 3312 [ERROR] Can't start server: listen() on TCP/IP port: No such file or directory
2013-10-20 09:28:41 3312 [ERROR] listen() on TCP/IP failed with error 0
2013-10-20 09:28:41 3312 [ERROR] Aborting**
Please help as I am a newbie am not able to get anything.
Thanks in advance
Raghu dev

【问题讨论】:

  • C:\>netstat -a -n | findstr 3306 在您的系统上返回什么?
  • 嗨,它没有返回任何东西
  • 看起来 MySQL 在尝试侦听端口 3306 时遇到了问题(windows 返回了无意义的“没有这样的文件或目录”),但是该命令没有返回任何内容表明问题不是由于该港口的冲突,这似乎是一个可能的候选人。您的 my.ini 文件中有 bind-address 吗?您打算使用 ipv4 还是 ipv6?
  • bind-address = 0.0.0.0 应该(?)强制服务器只尝试绑定到 ipv4 堆栈,所以这将是我的下一个建议。
  • 嗨 michael 将 mysqld 添加到防火墙解决了这个问题。感谢您节省您的时间..

标签: mysql


【解决方案1】:

打开命令提示符并键入 "netstat -an" (不带引号)。

您可以查看打开的端口列表。如果 3306 端口被其他进程使用,则将 my.ini 中的端口修改为端口 3307 或其他没有其他服务正在使用的端口,然后重新启动 MySQL 服务,它应该接受更改。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-10-09
    • 1970-01-01
    • 1970-01-01
    • 2013-06-19
    • 2022-01-13
    • 2012-11-21
    相关资源
    最近更新 更多