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
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
Please, let me know if the problem description is still not clear.
Ney André de Mello Zunino