login community faq

I am connecting to a MySQL database from a node.js app using the node-mysql-native module (http://github.com/sidorares/nodejs-mysql-native) and when I try to connect to the database, I get a "Bad Handshake" error.

I am able to connect using the module on my local machine to a local database, and the error is not related to a bad username/password as I tested the error output in that instance and it is different.

Anyone have any ideas?

asked Feb 09 '11 at 11:19

Dave%20Stevens's gravatar image

Dave Stevens
8129

A bad handshake error was reported as a bug in another node.js mysql binding

It turned out to be some funky password hashing. Maybe nodejs-mysql-native is suffering from the same problem?

Do any other MySQL modules work?

(Feb 09 '11 at 11:40) David L ♦♦ David%20L's gravatar image

That seems likely as I discovered this one works just fine: http://github.com/felixge/node-mysql

I note this one is sponsored by Joyent, which is a good indicator that it's of good quality! Linking it here for other's reference, but please consider my issue now resolved. Thanks for the quick response!

(Feb 09 '11 at 11:41) Dave Stevens Dave%20Stevens's gravatar image
Be the first one to answer this question!
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×116
×21
×19

Asked: Feb 09 '11 at 11:19

Seen: 3,090 times

Last updated: Feb 09 '11 at 11:41

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited