解决mysqld_safe无法启动问题的方法
发布:smiling 来源: PHP粉丝网 添加日期:2015-04-18 16:28:49 浏览: 评论:0
下文来为各位介绍解决mysqld_safe无法启动问题的方法,如果你碰到mysqld safe无法启动问题可以进入本站来参考解决方案.
启动mysql时报错:
- 141220 07:50:59 mysqld_safe mysqld from pid file /usr/local/mysql/data/vps.cbo999.com.pid ended
- 141220 07:54:30 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data --phpfensi.com
- 141220 7:54:30 [Note] Plugin ‘InnoDB’ is disabled.
- 141220 7:54:30 [Note] Server hostname (bind-address): ‘0.0.0.0’; port: 3306
- 141220 7:54:30 [Note] – ‘0.0.0.0’ resolves to ‘0.0.0.0’;
- 141220 7:54:30 [Note] Server socket created on IP: ‘0.0.0.0’.
- 141220 7:54:30 [Note] Event Scheduler: Loaded 0 events
- 141220 7:54:30 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
- Version: ‘5.5.34-log’ socket: ‘/tmp/mysql.sock’ port: 3306 Source distribution
- 141220 7:54:48 [Note] /usr/local/mysql/bin/mysqld: Normal shutdown
分析:是/tmp/mysql.sock 不存在
由于mysql 默认的mysql.sock 是在/var/lib/mysql/mysql.sock,创建符号连接.
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
然后启动mysql,搞定.
Tags: mysqld_safe mysql无法启动
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)