SHARE
TWEET

Untitled

a guest Aug 18th, 2018 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var mysql = require('mysql');
  2.  
  3. var con = mysql.createConnection({
  4.   host: "localhost",
  5.   user: "root",
  6.   password: "sistemas2018"
  7. });
  8. con.on('error', function(err) {
  9.   console.log("[mysql error]",err);
  10. });
  11. con.connect(function(err) {
  12.   if (err) throw err;
  13.   console.log("Connected!");
  14. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top