Add MySQL to Windows system services

Source: Internet
Author: User

After downloading the free install version of MySQL, compress the package. At this point MySQL is not working yet and we need to do some work:

1. Installing the MySQL Service

Create a new batch file, Startmysql.bat, with the following file contents:

@ECHO offrem Register MySQL "D:\application\MySQLServer5.5\bin\mysqld.exe"  --install mysql  --defaults-file= "d:\ Application\mysqlserver5.5\my.ini "rem start MYSQLSC start" MySQL "Pause

2. Uninstalling the MySQL service

Create a new batch file, Stopmysql.bat, with the following file contents:

rem Stop MySQL service sc stop "MySQL" rem note MySQL service sc delete "MySQL" "D:\application\MySQLServer5.5\bin\mysqld.exe"  -- Removepause

Double-click Startmysql.bat to install the MySQL service to your computer. Go to the [Computer]à[Management]à[Service] to find out if the MySQL service is installed and started.

Similarly, to uninstall the MySQL service only need to double-click Stopmysql.bat.

Add MySQL to Windows system services

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.