Skip to content

Instantly share code, notes, and snippets.

@rts-rob
Created September 9, 2017 10:02
Show Gist options
  • Save rts-rob/a3de1580dd40f2d349c016e6a0ac216a to your computer and use it in GitHub Desktop.
Save rts-rob/a3de1580dd40f2d349c016e6a0ac216a to your computer and use it in GitHub Desktop.
Setup for MySQL Connection
let mysql = require('mysql');
...
const connection = mysql.createConnection({
host: "somedatabasehost.com",
user: "someuser",
password: "somepassword",
multipleStatements: true
});
...
connection.connect();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment