Tenancy for Laravel General error: 1615 Prepared statement needs to be re-prepared

There are two ways of fixing this problem:

First confirm this value:

show global variables like '%table_definition_cache%';

Then increase the value:

set global table_definition_cache = 4000;

or

'options' => [
\PDO::ATTR_EMULATE_PREPARES => true
]

References

Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top