Created
June 23, 2020 06:42
-
-
Save vihoangson/17431ef6823d14766899c7e4b4fc1495 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mysql = require('C:/Users/Admin/AppData/Roaming/npm/node_modules/mysql'); | |
console.log(mysql); | |
var con = mysql.createConnection({ | |
host: "localhost", | |
user: "root", | |
password: "", | |
database : 'lampart' | |
}); | |
con.query('select * from lp_users',(error, results, fields)=>{ | |
console.log(results[0].user_login); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment