Laravel 5 为什么alter database语句会导致;一般错误:当其他未缓冲查询处于活动状态时,2014无法执行查询。”;

Laravel 5 为什么alter database语句会导致;一般错误:当其他未缓冲查询处于活动状态时,2014无法执行查询。”;,laravel-5,mysql-5.7,Laravel 5,Mysql 5.7,我正在运行laravel(5.5)迁移,试图更改数据库默认字符集和排序规则: 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 aga

我正在运行laravel(5.5)迁移,试图更改数据库默认字符集和排序规则:


  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_QU  
  ERY attribute. (SQL: ALTER DATABASE studi_drupal CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_520_ci';)