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.