본문 바로가기

Nevertheless

검색하기
Nevertheless
프로필사진 hxx_1

  • 분류 전체보기 (168)
    • 데브코스 (91)
      • 도서 판매 쇼핑몰 (22)
      • 웹 기반 문서 편집기 제작 프로젝트 (7)
    • 코딩테스트 (64)
      • Baekjoon (19)
      • Programmers (43)
      • SWEA (2)
    • CS (5)
    • 🖥️Web (5)
      • JavaScript (2)
    • React (2)
    • 프로젝트 (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
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
  • 좋아요추가
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록데이터베이스연동 (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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바