用户
 找回密码
 入住 CI 中国社区
搜索
查看: 3323|回复: 4
收起左侧

[HELP] KNDB 报错哦 很奇怪

[复制链接]
发表于 2010-2-27 15:26:13 | 显示全部楼层 |阅读模式
本帖最后由 waterc 于 2010-2-27 15:32 编辑

我按照标准的用法使用的,
我确定我的数据库连接正常,该条session记录也顺利写入数据库了.
但是页面下面有如下报错
A PHP Error was encountered
Severity: Warning

Message: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO)

Filename: libraries/Session.php

Line Number: 430

A PHP Error was encountered
Severity: Warning

Message: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established

Filename: libraries/Session.php

Line Number: 430

A PHP Error was encountered
Severity: Warning

Message: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO)

Filename: libraries/Session.php

Line Number: 431

A PHP Error was encountered
Severity: Warning

Message: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established

Filename: libraries/Session.php

Line Number: 431

A PHP Error was encountered
Severity: Warning

Message: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO)

Filename: libraries/Session.php

Line Number: 432

A PHP Error was encountered
Severity: Warning

Message: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established

Filename: libraries/Session.php

Line Number: 432

A PHP Error was encountered
Severity: Warning

Message: mysql_query(): 42 is not a valid MySQL-Link resource

Filename: libraries/Session.php

Line Number: 436

A PHP Error was encountered
Severity: Warning

Message: mysql_close(): 42 is not a valid MySQL-Link resource

Filename: libraries/Session.php

Line Number: 403
发表于 2010-2-27 17:42:47 | 显示全部楼层
报错信息已经很明白了,楼主去看一下他的源码啊~~~
 楼主| 发表于 2010-2-28 00:10:54 | 显示全部楼层
哦  我是直接从官方获取的代码,想应该不会代码有问题吧,还以为是我什么地方配置的问题那
发表于 2010-2-28 01:58:11 | 显示全部楼层
只有两种可能:
1. KNDB 有 BUG。
2. 你的系统配置有问题。

我觉得是你的系统配置问题。
发表于 2010-3-17 10:47:47 | 显示全部楼层
我也是这个问题,用脚手架的时候出现的~求解~另外,存到数据库的session会自动删除吗,结束会话之后就没用了啊

本版积分规则