netstat -aon|findstr 3306
这样就会显示,那个进程id占用了3306端口。最后列为pid
tarklist显示进程pid,所对应的进程名字。
taskkill /pid pid值 -f