node js mysql, express 같이
const express = require('express'); const mysql = require('mysql'); const db = mysql.createConnection({ host:'localhost', user : 'root', password:'0000', database:'member' }); const app = express(); const HOST_NAME = "127.0.0.1"; const PORT = 9999; app.get("/student", (req,res)=>{ db.query('select * from student', (err, rows)=>{ if(err) throw err; res.header("Content-Type", "application/json"); ..