feat: 切换为MariaDB数据库存储
This commit is contained in:
14
lib/db.ts
Normal file
14
lib/db.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import mysql from 'mysql2/promise';
|
||||
|
||||
const pool = mysql.createPool({
|
||||
host: '192.168.0.196',
|
||||
port: 3306,
|
||||
user: 'smalltown',
|
||||
password: 'MyPassword1+',
|
||||
database: 'smalltown',
|
||||
waitForConnections: true,
|
||||
connectionLimit: 10,
|
||||
queueLimit: 0
|
||||
});
|
||||
|
||||
export default pool;
|
||||
Reference in New Issue
Block a user