MySQL服务名无效、Install/Remove of the server denied的解决方法
2017-04-21 00:00
651 查看
摘要: 连接mysql时出现"Can't connect to MYSQL server on'localhost'"错误,一般原因是mysql未启动。需要注册、启动mysql服务。
配置wnmp(window+nginx+php+mysql)时,用到mysql做测试,这里的mysql借用集成环境xampp中的mysql——偷懒一下^_^。
1、cmd命令行模式下,进入mysql的目录(这里用的集成环境,D:\xampp\mysql\bin)
启动mysql:net start mysql,显示"The service name is invalid",即mysql服务未注册。
注册mysql服务:mysqld --install,显示"Install/Remove of the Service Denied!"
出现这些错误的原因是:当前用户不是管理员身份。以管理员身份进入命令行模式:(1)右键系统桌面左下角的"开始"——选择"命令提示符(管理员)";(2)右键cmd.exe快捷方式——以管理员身份运行。这两种方法都可进入管理员模式的命令行。然后重新进入mysql目录,先注册mysql服务,再启动mysql,如下图:
停止mysql服务时,输入命令 net stop mysql:
2、查看mysql版本:命令行模式下输入 mysql -V,或者mysql中输入 status
配置wnmp(window+nginx+php+mysql)时,用到mysql做测试,这里的mysql借用集成环境xampp中的mysql——偷懒一下^_^。
1、cmd命令行模式下,进入mysql的目录(这里用的集成环境,D:\xampp\mysql\bin)
启动mysql:net start mysql,显示"The service name is invalid",即mysql服务未注册。
注册mysql服务:mysqld --install,显示"Install/Remove of the Service Denied!"
出现这些错误的原因是:当前用户不是管理员身份。以管理员身份进入命令行模式:(1)右键系统桌面左下角的"开始"——选择"命令提示符(管理员)";(2)右键cmd.exe快捷方式——以管理员身份运行。这两种方法都可进入管理员模式的命令行。然后重新进入mysql目录,先注册mysql服务,再启动mysql,如下图:
停止mysql服务时,输入命令 net stop mysql:
2、查看mysql版本:命令行模式下输入 mysql -V,或者mysql中输入 status
相关文章推荐
- MySQL服务名无效、Install/Remove of the server denied的解决方法
- net start mysql; (修)服务名无效, 请键入 NET HELPMSG 2185,mysql服务启动不了,Install/Remove of the Service Denied!
- 安装mysql Install/Remove of the Service Denied!错误的解决办法
- 安装mysql服务出现Install/Remove of the Service Denied!错误
- 安装mysql Install/Remove of the Service Denied!错误的解决办法
- 安装mysql Install/Remove of the Service Denied!错误的解决办法@oO寒枫Oo
- Install/Remove of the Service Denied! (mysql服务的安装问题)
- 安装mysql服务出现Install/Remove of the Service Denied!错误
- 安装mysql服务出现Install/Remove of the Service Denied!错误
- 安装mysql服务出现Install/Remove of the Service Denied!错误
- mysql Install/Remove of the Service Denied!错误的解决办法
- 安装mysql Install/Remove of the Service Denied!错误的解决办法
- mysql Install/Remove of the Service Denied解决办法
- 安装mysql Install/Remove of the Service Denied!错误的解决办法
- 安装mysql服务出现Install/Remove of the Service Denied!错误
- 安装mysql服务出现Install/Remove of the Service Denied!错误
- 兔子--安装或者卸载mysql服务出现Install/Remove of the Service Denied!错误
- 安装mysql Install/Remove of the Service Denied!错误的解决办法
- 安装mysql Install/Remove of the Service Denied! 解决办法
- 安装mysql服务出现Install/Remove of the Service Denied!错误