当前位置:网站首页>MySQL啟動報錯“Bind on TCP/IP port: Address already in use”
MySQL啟動報錯“Bind on TCP/IP port: Address already in use”
2022-06-11 08:58:00 【Jerry00713】
啟動報錯“Bind on TCP/IP port: Address already in use”
問題描述:
mysql啟動失敗,查看err日志
# tail -f /database/umc/data/umc.err
141106 10:37:14 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
141106 10:37:14 [ERROR] Do you already have another mysqld server running on port: 3306 ?原因分析:
端口3306被占用
使用命令:
ps -aux | grep mysql
發現並沒有3306端口的mysql進程。
使用命令:netstat –apn
查看所有的進程和端口使用情况。發現下面的進程列錶,其中最後一欄是PID/Program name
# netstat -apn | grep 3306
tcp 0 0 ::ffff:192.168.65.211:3306 ::ffff:192.168.65.211:3306 ESTABLISHED 18148/java 發現3306端口被PID為18148的Java進程占用。
進一步使用命令:ps -aux | grep java,或者直接:ps -aux | grep pid 查看
就可以明確知道3306端口是被哪個程序占用了!然後判斷是否使用KILL命令幹掉!
#啟動mysql
觀察
# netstat -anp | grep 3306
tcp 0 0 :::3306 :::* LISTEN 16511/mysqld
tcp 0 0 ::ffff:192.168.65.211:3306 ::ffff:192.168.65.211:4840 ESTABLISHED 16511/mysqld
tcp 0 0 ::ffff:192.168.65.211:3306 ::ffff:192.168.65.211:4841 ESTABLISHED 16511/mysqld
tcp 0 0 ::ffff:192.168.65.211:3306 ::ffff:192.168.65.211:4842 ESTABLISHED 16511/mysqld
tcp 0 0 ::ffff:192.168.65.211:3306 ::ffff:192.168.65.211:4837 ESTABLISHED 16511/mysqld
tcp 0 0 ::ffff:192.168.65.211:3306 ::ffff:192.168.65.211:4838 ESTABLISHED 16511/mysqld
tcp 0 0 ::ffff:192.168.65.211:4837 ::ffff:192.168.65.211:3306 ESTABLISHED 17632/java
tcp 0 0 ::ffff:192.168.65.211:4838 ::ffff:192.168.65.211:3306 ESTABLISHED 17632/java
tcp 0 0 ::ffff:192.168.65.211:4840 ::ffff:192.168.65.211:3306 ESTABLISHED 17632/java
tcp 0 0 ::ffff:192.168.65.211:4841 ::ffff:192.168.65.211:3306 ESTABLISHED 17632/java
tcp 0 0 ::ffff:192.168.65.211:4842 ::ffff:192.168.65.211:3306 ESTABLISHED 17632/java 边栏推荐
- Sword finger offer 31 Stack push and pop sequence
- Matlab r2022a installation tutorial
- SAP ABAP data types and data objects
- EN 45545-2:2020 T11 smoke toxicity test
- How many items should the indoor intumescent fire retardant coating meet according to BS 476-21 fire resistance standard?
- SAP ABAP internal table classification, addition, deletion, modification and query
- What is the process of en 1101 flammability test for curtains?
- Livedata and stateflow, which should I use?
- 光伏板怎么申请ASTM E108阻燃测试?
- Award winning survey | how Apache pulsar lived in 2022, you the final say
猜你喜欢

窗帘做EN 1101易燃性测试过程是怎么样的?

Codetop - sort odd ascending even descending linked list

What if the copied code format is confused?

处理RAW格式的图像,需要什么软件?

AS 3744.1标准中提及ISO8191测试,两者测试一样吗?

Sword finger offer 40 Minimum number of K

CUMT学习日记——ucosII理论解析—任哲版教材

Matlab学习7-图像处理之线性平滑滤波

What is the process of en 1101 flammability test for curtains?

Mazhiqiang: research progress and application of speech recognition technology -- RTC dev Meetup
随机推荐
Not eligible for getting processed by all beanpostprocessors
83. delete duplicate elements in the sorting linked list
C语言打印菱形
处理RAW格式的图像,需要什么软件?
What are the requirements of the drive housing UL 2043?
AS 3744.1标准中提及ISO8191测试,两者测试一样吗?
(1) AAC opening - lifecycle, livedata, ViewModel and source code analysis skills of core component principles (Reprint)
K8S应用(四)—— 搭建redis5 集群(可供外部直接访问)
面试题 02.02. 返回倒数第 k 个节点
SAP abap 字段符号
86. separate linked list
E. Zoom in and zoom out of X (operator overloading)
光伏板怎么申请ASTM E108阻燃测试?
Supplement 2: circle returning to origin
2095. 删除链表的中间节点
剑指 Offer 31. 栈的压入、弹出序列
Port occupancy problem, 10000 ports
矩阵求逆操作的复杂度分析(逆矩阵的复杂度分析)
窗帘做EN 1101易燃性测试过程是怎么样的?
leetcode - 230. The k-th smallest element in a binary search tree