Initial commit: 宁夏智慧养殖监管平台
This commit is contained in:
13
backend/test-simple-db.js
Normal file
13
backend/test-simple-db.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const { testConnection } = require('./config/database-simple');
|
||||
|
||||
async function test() {
|
||||
console.log('测试数据库连接...');
|
||||
const result = await testConnection();
|
||||
if (result) {
|
||||
console.log('✅ 数据库连接测试成功');
|
||||
} else {
|
||||
console.log('❌ 数据库连接测试失败');
|
||||
}
|
||||
}
|
||||
|
||||
test();
|
||||
Reference in New Issue
Block a user