4

I recently launched my Laravel based site, and I had no problems, but 40 mins ago when I checked it I get this error:

SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared (SQL: select * from `users` where `id` = 1 and `remember_token` = mfjLlbv3fR49TYGAqmUgBSqVVAKmoHhq26ws8rojuXxee5qWcvHrcdoTXs6W limit 1) 

Why is this happening? Everything was okay and now suddenly I cannot do anything.

Scott Weldon
  • 9,673
  • 6
  • 48
  • 67
Levi
  • 309
  • 5
  • 13

1 Answers1

8

This error occurs when mysqldump is in progress. It doesn't matter which DB dump is in progress. Wait for the dump to finish and this error will vanish.

The issue is with the table definition being dumped which cause this error.

Cheers,

Suren

Surender
  • 1,829
  • 1
  • 11
  • 2
  • 2
    if I have no dump in progress but instead get this error while running a query against a view? please elaborate your answer as it seems to cover only one of the possible cases and "wait it out" is a bit broad suggestion – Jaak Kütt Sep 22 '14 at 09:19