반응형
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 |
Tags
- JavaScript
- express
- Wecode
- Vue.js
- HOC
- jsx
- nodejs
- v-html
- State
- react
- 자료구조
- vuex
- 댓글달기
- Vue
- scss
- TypeScript
- ES6
- 자바스크립트
- event
- 리액트
- Vue transition
- CSS
- sass
- 쉬운설명
- input
- MySQL
- App.vue
- mapGetters
- storybook
- webpack
Archives
- Today
- Total
목록연동 (1)
익명의 개발노트
6. [MYSQL 연동]하기.
1. mysql 모듈 설치 npm install mysql 2. 모듈 불러와서 결합하기. var mysql = require('mysql'); var connection = mysql.createConnection({ host : 'localhost', port : 3306, //mysql 기본포트, 서버 포트쓰면 안된다! user : 'root', password : '********', database :'jsman' //데이터베이스 어떤걸로 쓸껀지. }); connection.connect(); connection.query('select * from user', function(err, rows, fields){ if(!err){ console.log('The solution is: ', rows..
프로그래밍/NodeJS
2019. 6. 9. 15:28