当前位置:网站首页>MySQL启动报错“Bind on TCP/IP port: Address already in use”
MySQL启动报错“Bind on TCP/IP port: Address already in use”
2022-06-11 08:56: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 边栏推荐
- Can not connect to local MySQL server through socket ‘/tmp/mysql. sock (2)‘
- CMVSS TSD No. 302与49 CFR 571.302测试方法是否一样
- 面试题 02.02. 返回倒数第 k 个节点
- Are the test methods of CMVSS TSD No. 302 and 49 CFR 571.302 the same
- 682. 棒球比赛
- PHP解决中文显示乱码
- 显示器要申请BS 476-7 怎么送样?跟显示屏一样吗
- vagrant 安装踩坑
- SAP ABAP field symbol
- 使用express+mysql创建一个基于nodejs的后台服务
猜你喜欢
随机推荐
SAP abap 字段符号
GCC AVR (ATMEL studio+ AVR studio) how to define the structure array in the program memory (flash) space and read it
Port occupancy problem, 10000 ports
Intelligent control theory question bank
String类为何final修饰
En45545-2 R26 vertical combustion test introduction
显示屏DIN 4102-1 Class B1防火测试要求
欧洲家具EN 597-1 跟EN 597-2两个阻燃标准一样吗?
E. Zoom in and zoom out of X (operator overloading)
Android interview transcript (carefully sorted out)
Notes on MySQL core points
【新手上路常见问答】关于数据可视化
Matlab学习8-图像处理之线性与非线性锐化滤波、非线性平滑滤波
876. 链表的中间结点
Textview text size auto fit and textview margin removal
PVC 塑料片BS 476-6 火焰传播性能测定
Complete ES6 questions
Printf correlation of C
206. 反转链表
BS 7176软垫家具阻燃防火测试









