throw err; // Rethrow non-MySQL errors
这是我的代码
const conn = mysql.createConnection({
host: 'localhost',
user: 'root',
password: '',
database: 'db_crud'
});
conn.connect((err) =>{
if(err) throw err;
console.log('Mysql Connected...');
});
当我想在浏览器中打开索引时,任何人都可以帮助我