mysql21 mysql2 MYSQL2 https://github.com/sidorares/node-mysql2https://www.npmjs.com/package/mysql2 설치npm install --save mysql2First Query// get the clientconst mysql = require('mysql2'); // create the connection to databaseconst connection = mysql.createConnection({ host: 'localhost', user: 'root',//원본 소스에는 비밀번호부분이 없다password : '000000' database: 'test'}); // simple queryconnection.query( 'SELECT * FROM `table.. 2018. 8. 8. 이전 1 다음