mysqld启动“ Can't start server: Bind on TCP/IP port: Address already in use

[[email protected] ~]# vi /var/log/mysqld.log

进入log日志发现报以下的错误:

170901  4:56:54  InnoDB: Initializing buffer pool, size = 8.0M
170901  4:56:54  InnoDB: Completed initialization of buffer pool
170901  4:56:55  InnoDB: Started; log sequence number 0 44233
170901  4:56:55 [ERROR] Can‘t start server: Bind on TCP/IP port: Address already in use
170901  4:56:55 [ERROR] Do you already have another mysqld server running on port: 3306 ?
170901  4:56:55 [ERROR] Aborting

这个问题是因为3306端口被占用:

[[email protected] ~]# netstat -tunlp|grep mysql

tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      1672/mysqld

[[email protected] ~]# kill -9 1672
[[email protected] ~]# service mysqld start
正在启动 mysqld:                                          [确定]

[[email protected] ~]# mysqladmin -uroot password 123456
[[email protected] ~]# mysql -uroot -p123456
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.73 Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

mysql>

解决啦!!!!!

mysqld启动“ Can't start server: Bind on TCP/IP port: Address already in use

时间: 2024-10-12 03:30:52

mysqld启动“ Can't start server: Bind on TCP/IP port: Address already in use的相关文章

MySQL "Bind on TCP/IP port: Address already in use"

最近在已部署MySQL Enterprise Monitor的服务器上新增了MySQL实例,导致MySQL Enterprise Monitor异常宕机了,无法重新启动成功.收到了Bind on TCP/IP port: Address already in use的错误提示.下面是这个问题的解决办法,供大家参考. 1.故障现象[[email protected] init.d]# ./mysql-monitor-server startStarting mysql service  [ OK

修改mysql端口后重启mysql报错:Can't start server: Bind on TCP/IP port. Got error...n denied

1:错误信息:如下 [[email protected] ~]# systemctl status mariadb ● mariadb.service - MariaDB 10.2.30 database server Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled) Drop-In: /etc/systemd/system/mariadb.service.d └─

MySQL不能启动 Can't start server : Bind on unix socke

MySQL服务器突然不能启动,查看最后的启动日志如下: 080825 09:38:04 mysqld started080825 9:38:04 [ERROR] Can't start server : Bind on unix socket: Permission denied080825 9:38:04 [ERROR] Do you already have another mysqld server running on socket: /var/mysql.sock ?080825 9:

SQL Server 2005 Express tcp/ip远程访问设置

SQL Server 2005 Express 作为微软数据库的低端解决方案,在开发小型应用和WEB应用中有广泛的使用.但是SQL Server 2005 Exrpress在默认安装下只允许本机访问,如何启用网络访问功能就很有必要,现在我简单的介绍一下. 1. 确认成功安装SQL Server 2005 Express和 数据库服务已经启动.安装完成后,可以通过随SQL Server 2005 Express一同安装的工具 SQL Server Configuration Manager 查看数

SQL Server 2012开启TCP/IP登录,并且启用默认的1433端口

客户端应用程序可以使用 TCP/IP.命名管道.VIA 或共享内存协议连接到 Microsoft SQL Server.可以通过使用 SQL Server Native Client dll 中包含的客户端网络库来实现这些协议.若要配置 SQL Server 客户端,请使用 SQL Server 配置管理器,它是新的 Microsoft 管理控制台 (MMC) 管理单元,可从"开始"菜单或从计算机管理实用工具中找到.SQL Server 配置管理器提供了有关客户端网络协议的信息,并可以

WIZnet启动线下培训活动:计算机网络TCP/IP协议及其实现方法

为了给大家营造更好的学习环境,WIZnet特此举办第一期培训活动,由WIZnet一线工程师为你分享最最前沿和实用的网络技术知识,帮你解答开发过程中的疑问,欢迎前来交流!名额有限(20名满),抓紧报名吧! 面向对象:一线攻城狮,在校学生,创客等,需具备单片机编程能力- 本期内容:TCP/IP网络协议及其实现方法 准备物品:笔记本电脑 + W5500开发板(暂时借用也可) 培训地点:北京市朝阳区霄云路38号现代汽车大厦22层i108室(地铁十号线亮马桥B口出500M) 培训时间:2014年10月25

WLST connecting to WebLogic Admin Server failed : Bootstrap to [IP:Port] failed. It is likely that the remote side declared peer gone on this JVM

转载自: http://onlineappsdba.com/index.php/2014/02/18/wlst-connecting-to-weblogic-admin-server-failed-bootstrap-to-ipport-failed-it-is-likely-that-the-remote-side-declared-peer-gone-on-this-jvm/ WebLogic Scripting Tool (WLST) is a command-line scripting

SQL Server 连接问题-TCP/IP

原文:SQL Server 连接问题-TCP/IP 出自:http://blogs.msdn.com/b/apgcdsd/archive/2012/02/24/ms-sql-server-tcp-ip.aspx TCP/IP的基本工作原理这里就不浪费口水了.现在这网络年代,谁不知道TCP/IP啊.不要跟我抬杠说你偏就没听说过TCP/IP阿,真是这样那你得自己去补补课了. TCP/IP协议有两个基本的东西,一个是IP地址, 另一个是端口号. 在SQL Server 上使用TCP/IP协议是非常简单

centos7 mysql 启动mysqld.service - SYSV: MySQL database server错误

1.启动命令 systemctl start mysqld.service 或者 /etc/init.d/mysqld start   结果同样的错误 2.错误是: Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -xn' for details. 3.按照提示输入命令 systemctl status mysqld.service 或者 journalctl -xn 命令后