ode.jsmysql驱动库,示例代码:
var mysql = require('mysql');var coectio = mysql.createCoectio({ host : 'localhost', user : 'me', password : 'secret',});coectio.coect();coectio.query('SELECT 1 + 1 AS solutio', fuctio(err, rows, fields) { if (err) throw err; cosole.log('The solutio is: ', rows[0].solutio);});coectio.ed();点击空白处退出提示
评论