1. When you enter the bin directory to execute mysqld -install under the MySQL installation command,
But appeared
Install/Remove of the Service Denied!
It is a permission problem. Enter the system disk and find C:\Windows\System32\cmd.exe, right click to run as an administrator, and enter the corresponding directory to execute the command:
mysqld -install
Show again
The service already exists! The current server installed: D:\mysql-8.0.17-wi
Solution: Enter the system disk and find C:\Windows\System32\cmd.exe, right-click to run as an administrator.
Cause of error The previously installed mysql is not deleted, you need to delete it and install again
After completing the above operations, enter the system disk and find C:\Windows\System32\cmd.exe, right-click to run as an administrator, follow the installation steps of the previous blog, step by step, just a few commands.
————————————————————————————————— Can’t remember when mysql was installed, the only thing I remember was the command I'm not familiar with it. I found a tutorial on the Internet to install it. It was really bitter. Every time I used it, I was cautious, for fear that it would be deleted by my hand. Now, it only took me 2 minutes from deleting to reinstalling. (No longer afraid of hand sliding)