【亲测有效-Windows】Install/Remove of the Service Denied 错误:2003-Can‘tconnecttoMySqlserveron‘localhost(0)

目录

问题描述:

解决办法:


问题描述:

1.电脑sqlyog连接mysql出现2003-Can‘t connect to MySql server on ‘localhost‘(10061)或者2003-Can‘t connect to MySql server on ‘localhost‘(0)错误

2.当你发现电脑服务中没有mysql服务

【亲测有效-Windows】Install/Remove of the Service Denied 错误:2003-Can‘tconnecttoMySqlserveron‘localhost(0)_第1张图片 

3.执行mysqld.exe -install或者mysqld -install出现:

Install/Remove of the Service Denied!

解决办法:

1.管理员身份运行cmd(win10和win11都可以在开始界面搜索命令提示符)

【亲测有效-Windows】Install/Remove of the Service Denied 错误:2003-Can‘tconnecttoMySqlserveron‘localhost(0)_第2张图片

 2.输入 “mysqld --install

【亲测有效-Windows】Install/Remove of the Service Denied 错误:2003-Can‘tconnecttoMySqlserveron‘localhost(0)_第3张图片

出现Service successfully installed 则代表成功了(上图表示本来问题已解决)

3.输入 “net start mysql ”启动mysql服务

【亲测有效-Windows】Install/Remove of the Service Denied 错误:2003-Can‘tconnecttoMySqlserveron‘localhost(0)_第4张图片

然后查看是否启动mysql服务(步骤):

1.桌面右击此电脑--->管理

【亲测有效-Windows】Install/Remove of the Service Denied 错误:2003-Can‘tconnecttoMySqlserveron‘localhost(0)_第5张图片

2.点击服务和应用程序

【亲测有效-Windows】Install/Remove of the Service Denied 错误:2003-Can‘tconnecttoMySqlserveron‘localhost(0)_第6张图片

 

 3.点击服务

【亲测有效-Windows】Install/Remove of the Service Denied 错误:2003-Can‘tconnecttoMySqlserveron‘localhost(0)_第7张图片

 4.M里面找Mysql服务

【亲测有效-Windows】Install/Remove of the Service Denied 错误:2003-Can‘tconnecttoMySqlserveron‘localhost(0)_第8张图片

存在代表问题已解决!

你可能感兴趣的:(mysql,数据库,WebyogSQLyog)