免费注册 查看新帖 |

Chinaunix

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

Can't connect to local MySQL server through sock [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-06-16 10:39 |只看该作者 |倒序浏览
如题:启动mysql时出现如下错误,请教高手该如何解决?(附:系统为:RH AS 3,系统自带的mysql)

ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

论坛徽章:
0
2 [报告]
发表于 2005-06-16 11:13 |只看该作者

Can't connect to local MySQL server through sock

我看了精华贴里的内容,关于这个问题出现的很普遍啊,希望哪位高手能帮忙解决.期待中...............

论坛徽章:
0
3 [报告]
发表于 2005-06-16 13:16 |只看该作者

Can't connect to local MySQL server through sock

你看看你的错误日志就明白了.

论坛徽章:
0
4 [报告]
发表于 2005-06-17 14:20 |只看该作者

Can't connect to local MySQL server through sock

现在mysql数据库可以使用了,可又有一个问题出现了
mysql -uroot -pxxx 可以进入mysql,也可以在里面建数据表。
可如果用phpmyadmin连接,就进不去
错误提示:
#2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
请教该如何解决这个问题??期待高手。
顺便将mysqld.log贴出来供大家参考:
050616 15:02:22  mysqld started
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
050616 15:02:22  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
050616 15:02:22  InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
050616 15:02:22  InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
050616 15:02:23  InnoDB: Started
050616 15:02:23 /usr/local/mysql/bin/mysqld: Can't create/write to file '/var/run/mysqld/mysqld.pid' (Errcode: 2)
/usr/local/mysql/bin/mysqld: ready for connections.

论坛徽章:
0
5 [报告]
发表于 2005-06-18 16:37 |只看该作者

Can't connect to local MySQL server through sock

期待高手

论坛徽章:
0
6 [报告]
发表于 2005-06-18 18:17 |只看该作者

Can't connect to local MySQL server through sock

确定那个目录有写的权限

论坛徽章:
0
7 [报告]
发表于 2005-06-18 21:31 |只看该作者

Can't connect to local MySQL server through sock

问题都不难,自己先分析一下吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP