Error TSQL

From: Ivan Koji Koga <ivankoga_at_yahoo.com.br>
Date: Mon, 28 Feb 2005 00:52:26 -0300


Hello all,
I tried to use the TSQLServer class and i got some error that i don't know. Could some one else explain what is wrong and how to corret it? The MySQL is curretly running in version 4.1.10 and login and password are ok.

Here is the code...

{
TSQLServer *db = TSQLServer::Connect("mysql://200.128.80.175:3306/pipesbr","ivan","pass"); TSQLResult *res = db->Query("select * from RoundTrip");

int nrows = res->GetRowCount();
int nfields = res->GetFieldCount();

for (int i=0; i < nrows; i++) {
TSQLRow *row = res->Next();
for (int j = 0; j < nfields; j++) {
printf("%s\n", row->GetField(j));
}

delete row;
}

delete res;
delete db;
}



Here is the error...

root [0] .x /testesql.C
Error in <TMySQLServer::TMySQLServer>: connection to database pipesbr on 200.128.80.175 failed (error: Client does not support authentication protocol requested by server; consider upgrading MySQL client)
Error: illegal pointer to class object db 0x0 84 FILE:/testesql.C LINE:4 *** Interpreter error recovered *** Received on Mon Feb 28 2005 - 04:52:41 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:05 MET