Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let mysql = require('mysql')
- let connection = mysql.createConnection({
- host : 'http://145.239.82.137/phpmyadmin/',
- user : 'norbi',
- password : 'Iqevm7SDa6mZegZa',
- database : 'mrc'
- });
- connection.connect()
- connection.query('SELECT 1 + 1 AS solution', function (err, rows, fields) {
- if (err) throw err
- console.log('The solution is: ', rows[0].solution)
- })
- connection.end()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement