I'm having some difficulty with a program I wrote
which uses the MySQL C api. I'm trying to migrate
my server from version 4.0 to version 4.1.
I have no difficulty connecting to the server using
the mysql.exe command line utility, but when I try to
connect from my program using the same
Password hashing was changed in 4.1 to improve authentication security, but
this complicates backward compatibility. See the manual for details:
http://dev.mysql.com/doc/mysql/en/old-client.html
http://dev.mysql.com/doc/mysql/en/password-hashing.html
Your best bet is to link your app against
On Fri, 25 Mar 2005, Michael Stassen wrote:
Password hashing was changed in 4.1 to improve authentication security, but
this complicates backward compatibility. See the manual for details:
http://dev.mysql.com/doc/mysql/en/old-client.html
On Fri, 25 Mar 2005, Andrew Prock wrote:
On Fri, 25 Mar 2005, Michael Stassen wrote:
Password hashing was changed in 4.1 to improve authentication security, but
this complicates backward compatibility. See the manual for details:
http://dev.mysql.com/doc/mysql/en/old-client.html
hi there
the present serves for some clearing some doubts i have:
1 - if i wanna make an action based on the fact that a query i just made
won't return results (empty set), how can i test that?
will this do?
if(!mysql_query(myData, query)
{
results = mysql_store_results(myData);
1 - if i wanna make an action based on the fact that a query i just
made
won't return results (empty set), how can i test that?
will this do?
if(!mysql_query(myData, query)
{
results = mysql_store_results(myData);
if(mysql_num_rows() == 0)
{
//action;
}
}
On Saturday, 29. June 2002 11:15, Hugo Veiga wrote:
Hello Hugo,
will this do?
if(!mysql_query(myData, query)
{
results = mysql_store_results(myData);
-if(mysql_num_rows() == 0)
+if (!mysql_num_rows(results))
{
//action;
}
}
with the above correction it should