I can't lock MySQL tables with this query:
DB::statement('LOCK TABLES imports WRITE');
It gives those exception:
[Illuminate\Database\QueryException]
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. (SQL: LOCK TABLES imports WRITE)
The same error occurs when I use PDO.
How i should use this?