Last active
May 14, 2019 19:56
-
-
Save MatteoOreficeIT/4e4f117d1efbbebb43c86e80749cf61c to your computer and use it in GitHub Desktop.
How to set PDO attributes ( PDO::setAttributes ) Laravel:5.4.* , for example MYSQL_ATTR_USE_BUFFERED_QUERY
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// General error: 2014 Cannot execute queries while other unbuffered queries are active | |
\DB::getPdo()->setAttribute(\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY,true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I using laravel 5.8 and get the same error:
My migration code: