Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var express = require('express');
- var mysql = require('mysql');
- var app = express();
- var connection = mysql.createConnection({
- host: 'localhost',
- user: 'your_user',
- password: 'some_secret',
- database: 'the_app_database'
- });
- connection.connect(function(err) {
- if (err) throw err
- console.log('You are now connected...')
- });
Add Comment
Please, Sign In to add comment