重裝windows7 64 位后,想把mysql加到系統(tǒng)服務(wù)里面,
命令如下:
mysqld.exe --install,報(bào)以下錯(cuò)誤:
Install/Remove of the Service Denied!
解決方案:
此錯(cuò)誤是由于當(dāng)前用戶沒有管理員權(quán)限造成的。開始——CMD.exe——右鍵,以管理員身份運(yùn)行,然后按照以以下命令即可將mysql加到系統(tǒng)服務(wù)里面去
mysqld.exe --install
httpd.exe -k install
進(jìn)階:
1、mysql5.1以前版本用 mysqld-nt
2、指定服務(wù)名稱 啟動(dòng)腳本
mysqld.exe --install mysql5.5 --defaults-file="D:mysql5.5my.ini"
httpd.exe -k install -n "Apache2.2" -f “D:apache2.2confhttpd.conf
3、啟動(dòng)停止服務(wù)
net start mysql
net start apache2.2
net stop mysql
net stop apache2.2
3、刪除服務(wù)
mysqld.exe --remove
httpd.exe -k uninstall 或者 httpd.exe -k uninstall -n "Apache2.2"
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注