【MySQL driver for Node】
1、安装

2、一个示例

From this example, you can learn the following:
end() which makes sure all remaining queries are executed before sending a quit packet to the mysql server.3、处理connect回调。The recommended way to establish a connection is this:

4、直接query也能建立连接。However, a connection can also be implicitly established by invoking a query:

参考:https://github.com/mysqljs/mysql
原文:http://www.cnblogs.com/tekkaman/p/6359720.html