找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 17|回复: 1

问个问题 PDO 老报错。。肿么回事啊!重金悬赏!

[复制链接]

7

主题

69

回帖

163

积分

注册会员

积分
163
发表于 2014-4-22 14:55:11 | 显示全部楼层 |阅读模式
数据库配置页
[ol]
  • db. "SET NAMES utf8"
  •         ));
  •         dibi::connect(array(
  •                 'driver' => 'pdo',
  •                 'pdo' => $dsn,
  •                 'lazy' => true,
  •                 'profiler' => array(
  •                 'run' => TRUE,
  •             ),
  •         ));
  •         $dibi = true;
  • } catch (Exception $e) {
  •         echo $e->getMessage();
  •         exit();
  • }
  • ?>[/ol]复制代码

    报错
    http://up.vpsbar.im/tmp/exceptio ... 625fac44d0ec02.html

    日志
    [ol]
  • [2014-04-22 04-05-50] DibiDriverException: SQLSTATE[HY000]: Cannot execute queries while other unbuffered queries are active.  Consider using PDOStatement::fetchAll().  Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. in /web/lib/dibi.min.php:1102  @  http://up.vpsbar.im/en/public  @@  exception-2014-04-22-04-05-50-f3cf5137b37058de5d269f6efb15af27.html
  • [2014-04-22 04-05-59] DibiDriverException: SQLSTATE[HY000]: Cannot execute queries while other unbuffered queries are active.  Consider using PDOStatement::fetchAll().  Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. in /web/lib/dibi.min.php:1102  @  http://up.vpsbar.im/en/public  @@  exception-2014-04-22-04-05-50-f3cf5137b37058de5d269f6efb15af27.html
  • [2014-04-22 04-06-10] DibiDriverException: SQLSTATE[HY000]: Cannot execute queries while other unbuffered queries are active.  Consider using PDOStatement::fetchAll().  Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. in /web/lib/dibi.min.php:1102  @  http://up.vpsbar.im/en/public  @@  exception-2014-04-22-04-05-50-f3cf5137b37058de5d269f6efb15af27.html
  • [2014-04-22 04-06-19] DibiDriverException: SQLSTATE[HY000]: Cannot execute queries while other unbuffered queries are active.  Consider using PDOStatement::fetchAll().  Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. in /web/lib/dibi.min.php:1102  @  http://up.vpsbar.im/en/public  @@  exception-2014-04-22-04-05-50-f3cf5137b37058de5d269f6efb15af27.html
  • [2014-04-22 04-07-25] DibiDriverException: SQLSTATE[HY000]: Cannot execute queries while other unbuffered queries are active.  Consider using PDOStatement::fetchAll().  Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. in /web/lib/dibi.min.php:1102  @  http://up.vpsbar.im/en/public  @@  exception-2014-04-22-04-05-50-f3cf5137b37058de5d269f6efb15af27.html[/ol]复制代码

    求大神帮助! 散尽我的积分
  • 回复

    使用道具 举报

    81

    主题

    1364

    回帖

    2987

    积分

    金牌会员

    积分
    2987
    发表于 2014-4-22 16:29:15 | 显示全部楼层
    给你谷歌翻译了一下
    另外,如果你的代码是唯一永远要对mysql数据库方式运行,你可以通过设置PDO:: MYSQL_ATTR_USE_BUFFERED_QUERY属性启用查询缓存。
    in /web/lib/dibi.min.php:1102
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Discuz! X

    GMT+8, 2025-1-29 07:51 , Processed in 0.015274 second(s), 3 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

    快速回复 返回顶部 返回列表