Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- 백준13549번
- 리팩토링
- 자바
- 프로그래머스
- npm
- CS
- 컴퓨터공학
- 자바스크립트
- var와let과const차이
- Node.js
- 오픈소스
- js
- 데이터베이스
- 깃
- 객체
- 타입스크립트
- 예외처리
- 브랜치
- 리액트
- 깃허브
- post
- gui
- API
- 웹
- Express
- 파이프라인
- 변수
- 백준13549번js
- 백준1654번js
- 좋아요추가
Archives
- Today
- Total
목록데이터베이스연동 (1)
Nevertheless

데이터베이스 모듈화mariadb.js// Get the clientconst mysql = require('mysql2');// Create the connection to databaseconst connection = mysql.createConnection({ host: 'localhost', user: 'root', password: 'root', database: 'Youtube', port: '3307' ,// mariadb 포트 번호 3307로 변경했음 dateStrings: true});module.exports=connection 데이터베이스 모듈 연결하기users.jsconst conn = require('../mariadb') 회원 개별 조회: SELECT 문 사용route..
데브코스
2024. 9. 23. 20:57