Home  >  Article  >  Backend Development  >  安装mysql失败的有关问题:提示windows无法开启mysql服务

安装mysql失败的有关问题:提示windows无法开启mysql服务

WBOY
WBOYOriginal
2016-06-13 10:21:38977browse

安装mysql失败的问题:提示windows无法开启mysql服务
安装mysql失败的问题:提示windows无法开启mysql服务
第一次安装可以,但是由于和php5没有连接好,就卸载了再安装,就出现提示:在安装程序的最后一步,提示windows无法开启mysql服务、、、、、
请问下这是什么原因??

------解决方案--------------------
查看配置文件 my.ini 是否在 windows中,或 my.cnf 是否在 c根目录

如果mysql没有放在c盘根目录,在my.ini/cnf 中[client]下,加入 basedir=路径

再试试

希望有用
------解决方案--------------------
应该是上次卸载没卸好.

按照楼上把my.ini删除掉,然后到注册表厘米的HKEY_Local_Machine下面的System的CurrentControlSet的Services下面,把MySQL搜索出来,删掉。

再重装。
------解决方案--------------------
看看那啥,是不是有程序把mysql的端口占了。
------解决方案--------------------

应该是端口被上次的mysql给占用了。在命令提示符输入netstat -ao
找到3306的端口,查看这个程序的pid,在任务管理器里删除这个pid的进程就可以启动mysql
------解决方案--------------------
肯定还存在与mysql相关的服务,先查看一下服务,确定没有了在重新安装。有的话停止一下。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn