Skip to content

Instantly share code, notes, and snippets.

@kaelzhang
Last active December 18, 2015 16:59
Show Gist options
  • Save kaelzhang/5815755 to your computer and use it in GitHub Desktop.
Save kaelzhang/5815755 to your computer and use it in GitHub Desktop.
Node-mysql wrapper: use this trick to prevent program exiting caused by failure of node-mysql, and disable `connect` and `end` methods which might cause unexpected errors. "Error: Cannot enqueue Handshake after already enqueuing a Handshake".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment