Can#39;t start MySQL, port 3306 busy(无法启动 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 忙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:无法启动 MySQL,端口 3306 忙
基础教程推荐
- ORA-01830:日期格式图片在转换整个输入字符串之前结束/选择日期查询的总和 2021-01-01
- 从字符串 TSQL 中获取数字 2021-01-01
- while 在触发器内循环以遍历 sql 中表的所有列 2022-01-01
- 带有WHERE子句的LAG()函数 2022-01-01
- 使用 VBS 和注册表来确定安装了哪个版本和 32 位 2021-01-01
- 如何在 CakePHP 3 中实现 INSERT ON DUPLICATE KEY UPDATE aka upsert? 2021-01-01
- MySQL 5.7参照时间戳生成日期列 2022-01-01
- MySQL根据从其他列分组的值,对两列之间的值进行求和 2022-01-01
- CHECKSUM 和 CHECKSUM_AGG:算法是什么? 2021-01-01
- 带更新的 sqlite CTE 2022-01-01
