码迷,mamicode.com
首页 > 数据库 > 详细

linux下mysql提示"mysql deamon failed to start"错误的解决方法

时间:2016-07-13 01:22:12      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:

操作系统为centos,网站突然连接不上数据库,于是朋友直接重启了一下服务器。进到cli模式下,执行 service myqsld start 发现还是提示"mysql deamon failed to start"错误信息。

# /etc/init.d/mysqld start
MySQL Daemon failed to start.
Starting mysqld: [FAILED]

查看mysqld的log文件

#less /var/log/mysqld.log
141201 11:35:20 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
141201 11:35:43 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
141201 11:35:43 [Warning] ‘--default-character-set‘ is deprecated and will be removed in a future release. Please use ‘--character-set-server‘ instead.
141201 11:35:43  InnoDB: Initializing buffer pool, size = 8.0M
141201 11:35:43  InnoDB: Completed initialization of buffer pool
141201 11:35:43  InnoDB: Started; log sequence number 0 44233
141201 11:35:43 [ERROR] Can‘t start server: Bind on TCP/IP port: Permission denied
141201 11:35:43 [ERROR] Do you already have another mysqld server running on port: 12345 ?
141201 11:35:43 [ERROR] Aborting

说明应该是SELINUX的权限限制了,需要关掉selinux

查看当前配置信息.

# getenforce

Enforcing

就表明SELinux已经启用.只需要关闭即可。

关闭方法:

/usr/sbin/setenforce 0(0|1 开|关)

或者

setsebool ftpd_disable_trans 1

linux下mysql提示"mysql deamon failed to start"错误的解决方法

标签:

原文地址:http://www.cnblogs.com/tianlangshu/p/5665300.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!