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

后端 未结 7 1480
夕颜
夕颜 2020-11-27 07:43

I\'ve rewritten my site php-code and added MySQL Stored Procedures.

In my local version everything works fine but after I uploaded my site to hosting server I\'m co

7条回答
  •  青春惊慌失措
    2020-11-27 08:11

    Issue: 'Prepared statement needs to be re-prepared'

    This issue generally occurs at the time of calling procedure either by using any Computer Language(like Java) or Calling Procedures from the backend.

    Solution: Increase the size of the cache by using (executing) below script.

    Script: set global table_definition_cache = 4000;

提交回复
热议问题