List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:October 1 2010 5:37pm
Subject:Re: Problem: Access denied for user 'root'@'localhost' (using password: NO)
View as plain text  
On Oct 1, 2010, at 7:20 AM, Hossein Younesi wrote:

> I assumed that destructor will close the connection automatically!

Why assume?  You have the source code.  (And yes, it does.)

Are you sure all Connection objects are being destroyed correctly?

Also, the other respondent brought up another possibility, that more connections are open
at a given time than the MySQL server allows.  That doesn't necessarily indicate that
connections are never being closed, just that too many are being established.  It may be
that the proper fix is to keep connections open longer, and reuse them.

Are you using ConnectionPool?  If not, why not?
Thread
Problem: Access denied for user 'root'@'localhost' (using password: NO)Hossein Younesi1 Oct
  • RE: Problem: Access denied for user 'root'@'localhost' (using password: NO)F.N. Bruggeman1 Oct
Re: Problem: Access denied for user 'root'@'localhost' (usingpassword: NO)Hossein Younesi1 Oct
  • Re: Problem: Access denied for user 'root'@'localhost' (using password: NO)Warren Young1 Oct