• 查看端口得到PID
netstat -nao | findstr 3306
TCP    127.0.0.1:3306         0.0.0.0:0              LISTENING       3876(PID)
  • 根据PID查看进程对应的程序名称
tasklist /V | findstr 3876
mysqld.exe                    3876 Services...

或者
wmic process list brief | findstr 3876
  • 得到程序全路径名
wmic process where processid=3876 get processid,executablepath,name
  • 杀进程
taskkill /PID 3876 /F
或者
ntsd -c q -p 3876
或者
wmic process where name="mysqld.exe" delete
wmic process where processid=3876 call terminate
Logo

讨论HarmonyOS开发技术,专注于API与组件、DevEco Studio、测试、元服务和应用上架分发等。

更多推荐