免费注册 查看新帖 |

Chinaunix

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

mysql数据库连接不上 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-11-27 17:37 |只看该作者 |倒序浏览
直接在终端可以连接,用php就不行了
找不到mysql.sock ,执行mysqld命令的时候显示信息如下:
131127 17:24:53 [Warning] Can't create test file /usr/local/mysql-5.5.30-osx10.6-x86_64/data/bogon.lower-test
131127 17:24:53 [Warning] Can't create test file /usr/local/mysql-5.5.30-osx10.6-x86_64/data/bogon.lower-test
131127 17:24:53 [Note] Plugin 'FEDERATED' is disabled.
./mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
131127 17:24:53 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
131127 17:24:53 InnoDB: The InnoDB memory heap is disabled
131127 17:24:53 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131127 17:24:53 InnoDB: Compressed tables use zlib 1.2.3
131127 17:24:53 InnoDB: Initializing buffer pool, size = 128.0M
131127 17:24:53 InnoDB: Completed initialization of buffer pool
131127 17:24:53  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.


求解咋回事?是不是没有装好

论坛徽章:
2
酉鸡
日期:2014-02-19 09:11:08摩羯座
日期:2014-05-23 10:16:16
2 [报告]
发表于 2013-11-27 22:10 |只看该作者
应该是没装好,亲,一般不用mysqld的,而是用mysql_safe:wink:

论坛徽章:
0
3 [报告]
发表于 2013-11-28 09:58 |只看该作者
你确定用终端可以?
你用的是5.6吧,需要重新install_db一下

论坛徽章:
1
巨蟹座
日期:2013-12-03 18:38:13
4 [报告]
发表于 2013-11-28 15:11 |只看该作者
已经开了一个mysqld进程了吧

论坛徽章:
8
CU大牛徽章
日期:2013-09-18 15:20:48CU大牛徽章
日期:2013-09-18 15:20:58CU大牛徽章
日期:2013-09-18 15:21:06CU大牛徽章
日期:2013-09-18 15:21:12CU大牛徽章
日期:2013-09-18 15:21:17天秤座
日期:2013-10-30 14:01:03摩羯座
日期:2013-11-29 18:02:31luobin
日期:2016-06-17 17:46:36
5 [报告]
发表于 2013-11-29 11:35 |只看该作者
是没有安装完成。

论坛徽章:
0
6 [报告]
发表于 2013-11-29 12:01 |只看该作者
我重装一次看看先
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP