一:安装 npm i youcai0628 二:导入 const db = require('youcai0628'); 三:使用 db.connection.query(`sql语句`,(err,results)=>{ //err是错误对象 //results是结果集 });