Recently learning to configure the local server, the command line to start MySQL is always due to insufficient permissions to fail,
Looked at a lot of ways, and finally found a way to once and for all.
Win+r-cmd, this is always not possible, but also to find Cmd.exe right-click to run cmd as an administrator, and then net start MySQL can.
Every time this is quite troublesome, can the default let Cmd.exe as an administrator to run it?
The answer is yes.
Win+r--regedit
Locate the following location
HKEY_CURRENT_USER\Software\Microsoft\Windows Nt\currentversion\appcompatflags\layers
, create a new string value, named "C:\windows\system32\cmd.exe", generally our system is installed in the C-drive it???
Then right--modify--value data written to "RUNASADMIN", OK!
If it is too troublesome to do so, copy it directly to the system installed in the C-drive 32-bit:
Windows Registry Editor Version 5.00[hkey_current_user\software\microsoft\windows nt\currentversion\appcompatflags\ Layers] "C:\\windows\\system32\\cmd.exe" = "RUNASADMIN"
Open Notepad, copy and paste the above code, save as 1.reg, and then double-click to import the registry.
OK, this time we win+r input cmd, the startup is already the default administrator identity.
Let Cmd.exe always run as administrator in Win8