win10注册mysql到windows服务报错:Install/Remove of the Service Denied_mb638850c260752的技术博客_51CTO博客

win10系统安装mysql的时候报错:Install/Remove of the Service Denied!

在cmd里输入:mysqld install MySQL8.0  会直接报错,无法按照,如下图

win10注册mysql到windows服务报错:Install/Remove of the Service Denied_windows

按照目录已切换到mysql的bin文件夹,还是报 Install/Remove of the Service Denied!

在window窗体里搜索cmd命令,然后右键已管理员身份运行还是一样的错误。

解决方案:

1、找到C:\Windows\System32\cmd.exe文件,右键“以管理员身份运行(A)”,直接运行

win10注册mysql到windows服务报错:Install/Remove of the Service Denied_初始化_02

2、切换到D盘,输入:d:

3、切换到mysql的bin文件夹,输入:cd D:\Program Files\MySql\mysql-8.0.21-winx64\bin

win10注册mysql到windows服务报错:Install/Remove of the Service Denied_windows_03

 4、注册windows服务,输入:mysqld install MySQL8.0

5、初始化并生成临时密码,密码在data下 xx.err文件,输入:mysqld --initialize

6、启动服务,输入:net start mysql8.0


原网址: 访问
创建于: 2023-01-11 12:10:07
目录: default
标签: 无

请先后发表评论
  • 最新评论
  • 总共0条评论