I have WAMP server version 2.2. Previously, MySQL Server running normally. I don't know why when I tried to start, it cannot start anymore. Here are the content of MySQL.log: 140502 21:04:46 [Note] Plugin 'FEDERATED' is disabled. 140502 21:04:47 InnoDB: The InnoDB memory heap is disabled 140502 21:04:47 InnoDB: Mutexes and rw_locks use Windows interlocked functions 140502 21:04:47 InnoDB: Compressed tables use zlib 1.2.3 140502 21:04:47 InnoDB: Initializing buffer pool, size = 128.0M 140502 21:04:47 InnoDB: Completed initialization of buffer pool 140502 21:04:47 InnoDB: highest supported file format is Barracuda. 140502 21:04:47 InnoDB: Waiting for the background threads to start 140502 21:04:48 InnoDB: 1.1.8 started; log sequence number 1595675 140502 21:04:48 [Note] Server hostname (bind-address): '(null)'; port: 3306 140502 21:04:48 [Note] - '(null)' resolves to '::'; 140502 21:04:48 [Note] - '(null)' resolves to '0.0.0.0'; 140502 21:04:48 [Note] Server socket created on IP: '0.0.0.0'. 140502 21:04:48 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory 140502 21:04:48 [ERROR] Do you already have another mysqld server running on port: 3306 ? 140502 21:04:48 [ERROR] Aborting 140502 21:04:48 InnoDB: Starting shutdown... 140502 21:04:49 InnoDB: Shutdown completed; log sequence number 1595675 140502 21:04:49 [Note] wampmysqld: Shutdown complete I had already tried to reinstall WAMP server but appear the same error. Can someone help me, please...
答案 0 :(得分:2)
该端口可能是由InnoDB之外的其他存储引擎尝试打开的。请参阅这篇文章,了解一些可以帮助您确定正在发生的事情的命令。
例如,netstat -an | findstr "3306"
danielschneller.com/2007/10/cant-start-server-bind-on-tcpip-port-no.html
答案 1 :(得分:0)
某个东西已经在该端口上工作了。在管理员CMD控制台中写
netstat -abn
并找到端口3306,然后你就会知道是什么阻塞了端口(已在其上运行的内容并阻止你的mysql)。
如果这对您没有帮助,请检查my.ini设置 在该文件中搜索
socket = /something
并将其更改为
socket = c:/something
答案 2 :(得分:0)
我遇到了与Windows 7 32位相同的问题。
某些文件名由Windows保留,例如${machinename}.pid
,${machinename}.err
等。
MySQL默认使用其中一些文件名。
安装完成后,在配置阶段,有一个Advanced选项,您可以使用它来更改这些文件名。您可以更改日志文件名,但不能更改pid文件名。
您需要逐步完成配置向导到“启动服务”步骤,然后它将抛出错误/警告消息。保持向导暂停(不要停止/取消向导)。
到目前为止,您的my.ini
文件已创建。您可以添加以下变量
pid_file=/path/to/pid/file.pid
然后转到Windows服务并启动该服务。
<强> N.B。不要停止/取消向导。
启动服务后,向导将继续,并将正确配置MySQL。
答案 3 :(得分:-1)
设置文件my.ini
:
innodb_flush_method =正常