profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/shivarajnaidu/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
yuvaraj shivarajnaidu https://www.linkedin.com/in/shivarajnaidu Blogger | Coder | Engineer | Linux Fan Boy :smile:

shivarajnaidu/qr-code-generation-using-js 3

Simple Demo Of QR Code Generation Using JS (QRCodeJs Library)

shivarajnaidu/ng-marquee 2

Angular 2+ Component For Marquee Text

shivarajnaidu/simple-login-service-with-nodejs-mongodb 2

Simple Login Service Using NodeJs And MongoDB

shivarajnaidu/locate-user 1

Know Your Client's Location

shivarajnaidu/angular-vimeo-embed 0

A simple AngularJS directive to embed Vimeo videos easily onto your website.

shivarajnaidu/barcode-generation-using-js 0

Simple Demo Of Barcode Generation Using JS (JsBarcode Library)

issue commentmysqljs/mysql

Initial successfull connecction callback for connecton pooling (DOCS update)

Yeah.. you are right we can do getconnection to test the successful connection to db;

The reason behind this is i want to ensure that the db connection from the application is working as expected when i deploy an instance @dougwilson So that can i avoid initial clear failure of connection right.

Anyways thanks for pointing me the way to achieve what i want with pooling.

shivarajnaidu

comment created time in 2 months

issue commentmysqljs/mysql

Initial successfull connecction callback for connecton pooling (DOCS update)

So for the first time when I start my node server how to know whether my ORM successfully connected to the dB server ..

Do I need to execute some query to know the dB connection successful?

shivarajnaidu

comment created time in 2 months

issue commentmysqljs/mysql

Initial successfull connecction callback for connecton pooling (DOCS update)

Thanks for the response @dougwilson . I have one more query..

Will this event emited immediately when I start the application , I mena when I create the new pool ?

shivarajnaidu

comment created time in 2 months

create barnchshivarajnaidu/RNBasicStarter

branch : master

created branch time in 2 months

created repositoryshivarajnaidu/RNBasicStarter

Simple RN app with side nav and bottom tabs

created time in 2 months

create barnchshivarajnaidu/simple-login-with-nodejs-mysql

branch : master

created branch time in 2 months

created repositoryshivarajnaidu/simple-login-with-nodejs-mysql

Simple Login Service With NodeJs and MySQL

created time in 2 months

issue openedmysqljs/mysql

Initial successfull connecction callback for connecton pooling (DOCS update)

Hi

var mysql      = require('mysql');
var connection = mysql.createConnection({
  host     : 'example.org',
  user     : 'bob',
  password : 'secret'
});
 
connection.connect(function(err) {
  if (err) {
    console.error('error connecting: ' + err.stack);
    return;
  }
 
  console.log('connected as id ' + connection.threadId);
});

with the above code for connections creation we can print successfully connected message initially to indicate the the db is connected

How to do the same when we create a new pool and want to know that the server successfully connected before executing any queries ..

var mysql = require('mysql');
var pool  = mysql.createPool(...);
 

how to print the initial connected to db message with this...

If there is a way please add it to docs.

Thank You !

created time in 2 months

startedbikkimahato/HTML-CSS-Projects

started time in 2 months

startedpaulmillr/chokidar

started time in 2 months

starteddistrict0/ZoomX

started time in 3 months

startedPatilShreyas/Foodium

started time in 3 months