net start MySQL has system error 5. Access denied.

Source: Internet
Author: User

Tag: net start MySQL has system error 5. Access denied.

Yesterday after Windows installed in the mysql-5.7.19, want to restart the system today, so I want to shut down MySQL to restart the host

And it turns out that the error was reported when the CMD was closed.

>net start MySQL

System error 5 has occurred.

Access denied.

Later found that the permissions are not correct, in CMD, run as Administrator, and start and close

It's going to be a hassle, because you need to remember to run as an administrator every time.


1. Win+q Search to cmd right-click cmd Select "Attach to Start menu (U)" so that CMD is found on the Start menu

2, win+q find cmd in the directory right-click Select Properties, select the shortcut, then select Advanced, choose to run as Administrator, and then click OK!

Just open the Start menu and click on the shortcut above to run cmd as an administrator! Re-enter net start MySQL will not be wrong!


In the test:

C:\windows\system32>net start MySQL

The MySQL service is starting.

The MySQL service has started successfully.


C:\windows\system32>net stop MySQL

The MySQL service is stopping.

The MySQL service has stopped successfully.


It's OK! ~

This article is from "Learning to live like a tree" blog, please be sure to keep this source http://laobaiv1.blog.51cto.com/2893832/1953184

net start MySQL has system error 5. Access denied.

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.