diff --git a/node_api/db/index.js b/node_api/db/index.js index e01fc6a..d8a0d6a 100644 --- a/node_api/db/index.js +++ b/node_api/db/index.js @@ -4,13 +4,13 @@ const mysql = require('mysql') // 创建连接池 const pool = mysql.createPool({ - host: 'cd-cdb-k1lpjubm.sql.tencentcdb.com', - port:63983, - user: 'root', - password: 'Hejunhao01', - database: 'tiaozao', + host: '******', + port:3213, + user: '***', + password: '*****', + database: '****', connectionLimit: 20 }) // 导出数据库连接对象 -module.exports = pool; \ No newline at end of file +module.exports = pool;