无法启动MySql,端口3306繁忙

编程入门 行业动态 更新时间:2024-10-24 18:24:36
本文介绍了无法启动MySql,端口3306繁忙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试从XAMPP(在Windows Vista下)启动MySql,但这是指端口3306繁忙.

I'm trying to start MySql from XAMPP (under Windows Vista), but it's saying that's port 3306 is busy.

检查哪个应用程序正在使用该端口以及如何释放该端口的最佳方法是什么?

What would be the best way with check what application is using that port and how to free it?

谢谢!

推荐答案

在命令外壳中,运行:

netstat -b -p TCP

netstat -an | grep -i listen | grep -E 3306

第一个命令将输出一个列表,您需要浏览该列表以查找第二列中显示localhost:3306的行.在此下方是使用端口的应用程序名称.

The first command will output a list that you will need to look through for the line that displays localhost:3306 in the second column. Below this is the application's name using the port.

第二个命令将找到您要查找的确切端口,并且看起来像这样:

The secondary command will find find the exact port you are looking for and looks something like this:

<example-name>:user <example-name>$ netstat -an | grep -i listen | grep -E 3306 tcp46 0 0 *.3306 *.* LISTEN

更多推荐

无法启动MySql,端口3306繁忙

本文发布于:2023-08-07 14:14:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1319546.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:端口   繁忙   无法启动   MySql

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!