免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2363 | 回复: 3
打印 上一主题 下一主题

[Web] linux启动mysql数据库出现下面错误,急呀. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-04-14 09:52 |只看该作者 |倒序浏览
linux启动mysql数据库出现下面错误,大家帮帮忙.急呀.

...failed or took more than 6s.
        Please take a look at the syslog.
Warning: World-writable config file '/etc/mysql/debian.cnf' is ignored
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!

论坛徽章:
0
2 [报告]
发表于 2008-04-15 10:04 |只看该作者
很清楚了,就是已经启动,不需要再次启动

论坛徽章:
0
3 [报告]
发表于 2008-04-15 11:17 |只看该作者
netstat -ln看一下3306是不是已经有了

论坛徽章:
0
4 [报告]
发表于 2008-04-15 12:03 |只看该作者
原帖由 sunfighter 于 08 4 15 10:04 发表
很清楚了,就是已经启动,不需要再次启动



似乎不是已经启动了哦

...failed or took more than 6s.
#已经失败或耗时超过6秒

        Please take a look at the syslog.
#请查看系统日志

Warning: World-writable config file '/etc/mysql/debian.cnf' is ignored
#警告:全局可写的配置文件 '/etc/mysql/debian.cnf' 被忽略 -------------------------(应该是这个文件权限太开放)  

/usr/bin/mysqladmin: connect to server at 'localhost' failed
#/usr/bin/mysqladmin: 连接 'localhost'上的服务器失败

error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
#错误:不能通过'/var/run/mysqld/mysqld.sock' 连接到本地mysql服务器

Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
#检查mysqld在运行,并且socket文件'/var/run/mysqld/mysqld.sock' 存在


如果是根据提示,是因为'/etc/mysql/debian.cnf' 的权限是太开放造成配置文件被忽略,从而造成mysql不能启动或忽略配置文件启动,估计修改一下这个文件的权限就可以了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP