How to get rid of MySQL error ‘Prepared statement needs to be re-prepared’

This is a possibility: MySQL bug #42041

They suggest upping the value of table_definition_cache.

You can read about statement caching in the MySQL docs.

Leave a Comment