db connection in node js

As well as Very Easy code This Issue Db connection in node js

Once you have MySQL up and running on your computer, you can access it by using Node.js.

To access a MySQL database with Node.js, you need a MySQL driver. This tutorial will use the “mysql” module, downloaded from NPM.

Right Now To download and install the “mysql” module, open the Command Terminal and execute the following:


<strong>$ npm install couchbase


var cassandra = require('cassandra-driver')
var client = new cassandra.Client({ contactPoints: ['localhost'] })

client.execute('select key from system.local', function (err, result) {
  if (err) throw err




module.exports = {
             HOST: "localhost",
             USER: "root",
             PASSWORD: "123456",
             DB: "DB_Name"

Commet Fast and share this article help or not comet mee batayeeeeee…..

Leave a Comment