Page 1 of 1

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

Posted: Thu Feb 05, 2009 12:53 pm
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,

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

Posted: Thu Feb 05, 2009 5:26 pm
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.