WebFaction
Community site: login 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 09 Feb '11, 11:19

Dave Stevens
811512
accept rate: 50%

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?

(09 Feb '11, 11:40) David L ♦♦

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!

(09 Feb '11, 11:41) Dave Stevens
Be the first one to answer this question!
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×168
×65
×34

question asked: 09 Feb '11, 11:19

question was seen: 10,988 times

last updated: 09 Feb '11, 11:41

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM