List:MySQL++« Previous MessageNext Message »
From:Ney André de Mello Zunino Date:November 29 2004 7:25pm
Subject:Re: MySQL 4.1 and MySQL++ 1.7.23: "Bad handshake"
View as plain text  
Warren Young wrote:

> Ney André de Mello Zunino wrote:
> 
>> So I tried leaving the password blank and was finally able to connect. 
> 
> Clearly zunio@localhost does not have a password, then.  Are you running 
> into the issue in MySQL where localhost uses a separate grant rule than 
> connections from other hosts?

Sorry, I should have been more specific. When I said I could only get it 
to work by "leaving the password blank", that meant I actually went to 
the administrator and cleared the password for user "zunino@localhost". 
Then, back on the code, I changed the /Connection/'s constructor 
invocation to:

Connection con("ufsc", "localhost", "zunino", "");

and that worked. Going back to the administrator and filling in a 
password for "zunino@localhost" and using the *same* password in the 
last parameter of the constructor call will _always_ result in a 
"BadQuery" exception.

Please, let me know if the problem description is still not clear.

Regards,

-- 
Ney André de Mello Zunino

Thread
MySQL 4.1 and MySQL++ 1.7.23: "Bad handshake"Ney André de Mello Zunino25 Nov
  • Re: MySQL 4.1 and MySQL++ 1.7.23: "Bad handshake"Warren Young29 Nov
    • Re: MySQL 4.1 and MySQL++ 1.7.23: "Bad handshake"Ney André de Mello Zunino29 Nov
      • Re: MySQL 4.1 and MySQL++ 1.7.23: "Bad handshake"Warren Young29 Nov