摘要:
尝试使用了一下访问Oracle,从网上查到说node.js 不支持 通过tnsnames.ora配置来访问Oracle,然后从GitHub中抄袭了一段代码来测试(https://github.com/technoweenie/twitter-node/issues/18),测试一直报错,恳请好心人指路,到底什么是option:database 啊??WARNING: ev_ref is deprecated, use uv_refWARNING: ev_unref is deprecated, use uv_unrefCONNECTION ERROR: ORA-12154: TNS:could 阅读全文
摘要:
npm install mysql今天试了一下使用Node.js 访问Mysql 数据库,成功咯,分享下代码,哈哈。var mysql = require('mysql');exports.mysql = function(req, res) {var connection = mysql.createConnection({host : 'testhost',user : 'test',password : '123456',});connection.connect();connection.query('use 阅读全文