重裝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"
新聞熱點
疑難解答