Install/Remove of the Service Denied解决办法

 时间:2024-10-13 13:35:03

1、我们在安装MySQL的时候需要执行mysqld.exe -install命令,但是执行之后会提示“Install/Remove of the Service Denied!”,如图所示。

Install/Remove of the Service Denied解决办法

2、提示这个问题的原因就是没有权限,需要使用管理员身份运行cmd,可以点击Win10系统的搜索功能,如图所示。

Install/Remove of the Service Denied解决办法

3、然后直接在搜索框搜索“cmd”,可以看到上面的搜索结果,如图所示。

Install/Remove of the Service Denied解决办法

4、然后鼠标右键选择这个搜索结果,选择其中的“以管理员身份运行”,如图所示。

Install/Remove of the Service Denied解决办法

5、可以看到以管理员身份运行之后,命令行变成了“system32”,踊辽嚏囱此时我们在执行mysqld.exe -install命令,就会提示“Service successfull烤恤鹇灭y installed”,如图所示。

Install/Remove of the Service Denied解决办法Install/Remove of the Service Denied解决办法

6、但是要注意,安装成功之后还是不可以使用的,需要在Windows的服务管理中启动MySQL,如图所示。

Install/Remove of the Service Denied解决办法

7、此时,在执行MySQL的相关命令,就会提示成功了,如图所示。

Install/Remove of the Service Denied解决办法

8、以上就是安装MySQL时提示“Install/Remove of the Service Denied”的解决办法,希望可以帮到大家。

  • MySQL忘记密码怎么办
  • jdk怎么验证安装是否成功
  • cmd切换到d盘
  • mysql怎么配置环境变量?
  • IDEA怎么导入项目
  • 热门搜索
    滴滴司机怎么注册 孕妇腿抽筋怎么办 溜肉段的家常做法 清炖排骨的家常做法 怎么查手机积分 咬牙是怎么回事 好评怎么写 治疗黑头粉刺的方法 油麦菜怎么做好吃 正确的戒烟方法