Skip to content

How do I get connection id from pool? #602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sapkal-manish opened this issue Oct 2, 2013 · 1 comment
Closed

How do I get connection id from pool? #602

sapkal-manish opened this issue Oct 2, 2013 · 1 comment
Assignees
Labels
Milestone

Comments

@sapkal-manish
Copy link

How do I get connection id from pool?
I have seen id in "server admininistration" tool in workbench, that id I want in my coding (node.js). How can I set connectionLimit & queueLimit parameter(s) in pool config?

thanks

@dougwilson dougwilson self-assigned this Apr 8, 2014
@dougwilson dougwilson added this to the 2.2 milestone Apr 8, 2014
@dougwilson
Copy link
Member

Hi! In the next release of this library, you can now get the connection id of a connection:

pool.getConnection(function(err, conn){
  if (err) throw err;
  console.log('connection id ' + conn.threadId);
  conn.release();
});

dveeden pushed a commit to dveeden/mysql that referenced this issue Jan 31, 2023
* Remove strict mode

Fixes mysqljs#556 mysqljs#602 mysqljs#635
Closes mysqljs#609

* dsn: panic in case of strict mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants