Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. let mysql = require('mysql')
  2.  
  3. let connection = mysql.createConnection({
  4. host : 'http://145.239.82.137/phpmyadmin/',
  5. user : 'norbi',
  6. password : 'Iqevm7SDa6mZegZa',
  7. database : 'mrc'
  8. });
  9.  
  10. connection.connect()
  11.  
  12. connection.query('SELECT 1 + 1 AS solution', function (err, rows, fields) {
  13. if (err) throw err
  14.  
  15. console.log('The solution is: ', rows[0].solution)
  16. })
  17.  
  18. connection.end()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement