const mysql = require('mysql2/promise'); async function checkSchema() { try { const connection = await mysql.createConnection({ host: '192.144.32.178', port: 3306, user: 'root', password: 'lichao1314', database: 'auth_db' }); console.log('🔍 检查当前 user 表结构:'); const [rows] = await connection.execute('DESCRIBE user'); console.table(rows); await connection.end(); } catch (error) { console.error('❌ 数据库连接错误:', error.message); } } checkSchema();