Node.js MariaDB 연동

이연희·2022년 1월 1일
0

Node.js

목록 보기
2/4

MariaDB 연동

✅ npm으로 mysql 설치 후 연결 과정

var mysql = require('mysql')
var pool = mysql.createPool({
  connectionLimit:10,
  host:'example.org',
  user:'bob',
  password:'secret',
  database:'my_db'
});

✅ MariaDB database, table 생성




Github : web_server_program.js

profile
공부기록

0개의 댓글