Nginx 1.4.4
MySQL 5.5.34
PHP 5.3.27
以上配置在注册时收到提示:
Unhandled Exception.
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.
You can find the error back in the log.
回复#33 @ganxuming :MySQL的设置,不支持性能更佳的长连接,关闭即可。
打开includes/PDO.class.php,在第45行附近找到:
$this->pdo = new PDO('mysql:dbname='.$this->DBName.';host='.$this->Host, $this->DBUser, $this->DBPassword, array(PDO::ATTR_PERSISTENT => true, PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8" ));
改为:
$this->pdo = new PDO('mysql:dbname='.$this->DBName.';host='.$this->Host, $this->DBUser, $this->DBPassword, array(//PDO::ATTR_PERSISTENT => true, PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8" ));
回复#36 @lincanbin :用上啦 http://bbs.amazinggrace.cc
如果是主打性能的话,像上传的附件如果mp3,有必要html5直接调用播放,毕竟手机玩儿论坛的分享频率会比 pc端的多
登录后方可回帖
© 2006-2014这个在哪个文件改啊?怎么找不到footer?