Connecting Tech Pros Worldwide Forums | Help | Site Map

How to manage two MySQL library in one application.

Newbie
 
Join Date: Jun 2009
Posts: 19
#1: Sep 8 '09
Hi,

I am using two MySQL library in my application MySQL 4.0.13 and MySQl 5.1.34.
Old version library linked statically and New version is dynamically. It is on Solaris-10 platform.
There is no any interaction between these two in application.

While running application when I try to connect to MySQL server 5.1.34 using new version library( 5.1.34) it calls old version library function.

So I get error as:
MySQL error: Client does not support authentication protocol requested by server; consider upgrading MySQL client; errno = 1251

Also I have written one sample application which only uses the MySQL 5.1 library dynamic reference and trying to connect to Server 5.1.34 it connects successfully.

Can you please tell that cause the problem? Is there any linker or loader problem or anything else?

Any help on this highly appreciated?

Reply