From b493b0648cd921af75e731e753b3917ed9e48da3 Mon Sep 17 00:00:00 2001 From: Max <104013313+Nuyoahhjh@users.noreply.github.com> Date: Sun, 4 Feb 2024 17:36:53 +0800 Subject: [PATCH] Update index.js --- node_api/db/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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;