https://www.jianshu.com/p/6d8ed7c36e6f
在运行net start mysql时出现错误
error 2 has occurred. The system cannot find the file specified.
解决方案:
以管理员身份运行,在命令行输入cd+mySQL的bin目录的安装路径
C:\WINDOWS\system32>cd C:\softerwaresetting\mySQL\mysql-8.0.11-winx64\bin
C:\softerwaresetting\mySQL\mysql-8.0.11-winx64\bin>mysqld --remove
Service successfully removed.
C:\softerwaresetting\mySQL\mysql-8.0.11-winx64\bin>mysqld --install
Service successfully installed.
C:\softerwaresetting\mySQL\mysql-8.0.11-winx64\bin>net start mysql
The MySQL service is starting.
The MySQL service was started successfully.