masuidrive/node-mysql

Example is incorrect

mape opened this issue · 1 comments

mape commented

This seems to be broken:

var conn = new mysql.Connection();
conn.connect('localhost','nodejs_mysql', 'nodejs_mysql', 'nodejs_mysql');

This seems to work better:

var conn = new mysql.Connection(''localhost','nodejs_mysql', 'nodejs_mysql', 'nodejs_mysql');
conn.connect();

Thank you for report.
I fixed in 2afbad5