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

[HELP] 关于kndb的session上传到服务器后出错

[复制链接]
发表于 2010-5-16 10:09:09 | 显示全部楼层 |阅读模式
本帖最后由 iyuki0430 于 2010-5-16 10:18 编辑

用的kndb的session, 在本地localhost测试都一切正常的, 可上传到服务器就报错了, 一登陆网站就报错.
哪位大大告诉下怎么回事吧, 感恩.

这些是报错信息:
A PHP Error was encountered
Severity: Warning
Message: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'iyukimeg'@'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 'iyukimeg'@'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 'iyukimeg'@'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(): 26 is not a valid MySQL-Link resource
Filename: libraries/Session.php
Line Number: 436

A PHP Error was encountered
Severity: Warning
Message: mysql_close(): 26 is not a valid MySQL-Link resource
Filename: libraries/Session.php
Line Number: 403
发表于 2010-5-16 13:49:34 | 显示全部楼层
你发虚拟主机的账户没有使用mysql相关函数的权限,比如这些mysql_real_escape_string(),不是有错误提示吗?为什么不看
发表于 2010-5-16 20:57:35 | 显示全部楼层
换我发布的 Session 类库,这个类库恐怕有 BUG。
发表于 2010-8-17 16:38:19 | 显示全部楼层
回复 2# ywqbestever


    在什么地方设置mysql 支持哪些函数权限呢? 请知道告诉一声!感谢!

本版积分规则