var connection = mysql.createConnection('mysql://user:pass@host/db?debug=true&charset=BIG5_CHINESE_CI&timezone=-0700'); var connection = mysql.createConnection({ host : 'localhost', user : 'username', password : 'password', port : 3306, database : 'database', multipleStatements: true });
반응형
'lang > node' 카테고리의 다른 글
Nodejs Mysql PROTOCOL_ENQUEUE_AFTER_QUIT 에러 (0) | 2016.02.02 |
---|---|
Node.js Arguments (0) | 2016.01.28 |
ENOENT (0) | 2015.12.30 |
socket.io room join socket.id express api On Nodejs 5.1.0 + socket.io 1.3.7 (0) | 2015.12.17 |
Nginx LoadBalancer + Nodejs socket.io (0) | 2015.12.16 |