重装windows7 64 位后,想把mysql加到系统服务里面,
命令如下:
mysqld.exe --install,报以下错误:
Install/Remove of the Service Denied!
解决方案:
此错误是由于当前用户没有管理员权限造成的。开始——CMD.exe——右键,以管理员身份运行,然后按照以以下命令即可将mysql加到系统服务里面去
mysqld.exe --install
httpd.exe -k install
进阶:
1、mysql5.1以前版本用 mysqld-nt
2、指定服务名称 启动脚本
mysqld.exe --install mysql5.5 --defaults-file="D:mysql5.5my.ini"
httpd.exe -k install -n "Apache2.2" -f “D:apache2.2confhttpd.conf
3、启动停止服务
net start mysql
net start apache2.2
net stop mysql
net stop apache2.2
3、删除服务
mysqld.exe --remove
httpd.exe -k uninstall 或者 httpd.exe -k uninstall -n "Apache2.2"
【重装windows764 位后后如何将apache mysql加入系统服务】相关文章:
★ Win10系统怎么使用免打扰模式?Win10系统使用免打扰模式的方法
★ Win10安装字体文件时系统提示不是有效的字体文件怎么解决?
★ Xp系统打不开QQ提示没有找到SSOCommon.DLL解决方案
★ 什么是Hotspot 2.0? Win10 Mobile预览版14327已支持WiFi Hotspot 2.0
★ Win10 RS2预览版14942中Xbox登录失败该怎么办?
★ Win10/Win7/Win8.1怎么使用注册表给CAB更新包添加右键安装项?