Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuyoahhjh authored Feb 4, 2024
1 parent b120ef2 commit b493b06
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions node_api/db/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
module.exports = pool;

0 comments on commit b493b06

Please sign in to comment.