首先,以管理员身份运行cmd; 在cmd下,输入 netstat -ano|findstr 3306 (什么端口号被占用就输入什么端口号),回车; 再输入 taskkill /pid 3664 /f 回车 这里的3664对应被占用的PID。