MySQL Build Service

Source: Internet
Author: User
Tags mysql login

Why did I not find the MySQL service in the system "service" after I started the MySQL service with mysqld?
First of all, my service started successfully, because I can open a different cmd window for MySQL login, after logging in to perform various operations.
With phpMyAdmin also all normal, but puzzled is, I in the System Management Tool "service", unexpectedly can not find "MySQL service" this item.

I can also use mysqladmin-uroot-p shutdown to close this service, I normally shut down.

But if I use net stop MySQL to shut down the service, I will prompt
C:\Documents and Settings\aaa>net stop MySQL
System error 1060 has occurred.

The specified service does not exist with the installed service.

What does this mean, why the service is working, but not seen in the management tools-services and cannot be shut down through net stop MySQL.
But the service is really up and can be turned off by mysqladmin-uroot-p shutdown.

In short sentence: MySQL can be used normally, but there is no MySQL system service (so the implementation of net MySQL start (stop) will not be found)

First Use mysqld--install MySQL --defaults-file=<my.ini Full path >
The MySQL server main program is installed as a service, and its service name is MySQL, and you can specify a different name.
Then net start MySQL can start the service.

This place the color of the deepened MySQL is the name of the system service, can be casual, but use net startup to turn off MySQL when you need to write the corresponding MySQL service name to normal use of MySQL

For example:mysqld--install mysql5.5 --defaults-file=<my.ini full path >

When you start MySQL, you need to use the net start mysql5.5

MySQL Build Service

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.