On Saturday, July 19, 2014 8:44:27 AM UTC-4, tamizh arasan wrote:
>
> Now i have founded that sql connection goes to sleep condition when there 
> is no request for longer time(i.e 12hours). so can anybody suggest me how 
> to over come this problem. Thanks in advance.
>

What I have done (when using mysql2[1]) is set up a timer that periodically 
calls `connection.ping();` to help make sure the connection stays alive.

[1] https://github.com/sidorares/node-mysql2

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/3ce9d140-e38b-46b8-a9cc-96a850cb3bb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to