netstat -a 查询所有端口占用 netstat -ano | findstr 3306(查看占用3306端口号进程的PID,最右边的数字) taskkill /PID 9367 -t -f(将进程杀死)