How to simulate "MYSQL has gone away" error?

Posted by Lost_in_code on Stack Overflow See other posts from Stack Overflow or by Lost_in_code
Published on 2010-05-08T09:07:35Z Indexed on 2010/05/08 9:38 UTC
Read the original article Hit count: 163

Filed under:
|

I'm running lots of cron job and once in a while there is a MYSQL has gone away error.

I've now written some code to handle the error, but how do I simulate the error on my localhost so that the code can be tested thoroughly?

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql