How to rejoin Apache,mysql to the system service after reinstalling the Windows system

Source: Internet
Author: User

After reloading the Windows7 64-bit, want to add MySQL to the system service,

The order is as follows:

Mysqld.exe--install, report the following error:

Install/remove of the Service denied!

Solution:

This error is caused by the fact that the current user does not have administrator privileges. Start--cmd.exe--right, run as an administrator, and then add MySQL to the system service by following the command

Mysqld.exe--install

Httpd.exe-k Install

Advanced Step:

1, mysql5.1 previous version with Mysqld-nt

2. Specify Service name Start script

Mysqld.exe--install mysql5.5--defaults-file= "D:mysql5.5my.ini"

Httpd.exe-k install-n "Apache2.2"-F "d:apache2.2confhttpd.conf

3. Start Stop Service

net start MySQL

net start apache2.2

net stop MySQL

net stop apache2.2

3. Delete Service

Mysqld.exe--remove

Httpd.exe-k Uninstall or httpd.exe-k uninstall-n "Apache2.2"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.