ERRNO: 256 TEXT: SQLSTATE[HY000]: General error: 2014

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dqsmith
Forum Newbie
Posts: 1
Joined: Thu Feb 05, 2009 12:51 pm

ERRNO: 256 TEXT: SQLSTATE[HY000]: General error: 2014

Post by dqsmith »

Hi,

I have this error, ERRNO: 256
TEXT: SQLSTATE[HY000]: General error: 2014 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.

Please help me what is the cause of this error.

I have installed:

Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8

MySQL client version: 5.0.51a

PHP extension: mysql


Thanks,
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: ERRNO: 256 TEXT: SQLSTATE[HY000]: General error: 2014

Post by RobertGonzalez »

A simple search would have helped out here...

Another search, on the PHP manual, would have led you here, where you can read the first of the user comments.
Post Reply