2013年6月23日

摘要: 首先安装Mysql 模块吧npm install mysql刚开始在网上搜索了一个测试代码,发现根本就连接不上mysql.varClient=require('mysql').Client, client =newClient(),类似这样的.查原因: console.log(require("mysql"));对象只有5个方法createConnectioncreatePoolcreateQueryescapeescapeId没有Client 方法和 属性.去mysql 模块目录查看了下Readme.md#Here is an example on how 阅读全文
posted @ 2013-06-23 02:05 石头派 阅读(440) 评论(0) 推荐(0) 编辑

导航