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 09 Feb '11, 11:19 Dave Stevens |
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?
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!