Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared

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.

like image 876
Levi Avatar asked Dec 15 '22 22:12

Levi


1 Answers

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

like image 88
Surender Avatar answered May 09 '23 15:05

Surender