Advertisement
Guest User

Untitled

a guest
May 3rd, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. var mysql = require('mysql');
  2.  
  3. var connection = mysql.createConnection({
  4. host: "Unsere Host",
  5. user: "Unser User",
  6. password: "Unser Passwort",
  7. database: "Unsere Datenbank"
  8. });
  9.  
  10. connection.connect(function (err) {
  11. if (err) throw err;
  12. connection.query("Unsere MySQL Query", function (err, resultat, fields) {
  13. if (err) throw err;
  14. console.log(resultat);
  15. })
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement