You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
300 B

const mysql = require('mysql');
// 创建连接池
const pool = mysql.createPool({
host: 'localhost', // 数据库地址
user: 'root', // 数据库用户名
password: 'your_password', // 数据库密码
database: 'attendance_system' // 使用的数据库
});
module.exports = pool;