-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi;
I've been using the libmysqlclient library for a while now, and developing some client application which are using MySQL server as DB backend.
Now I'd like to use the libmysqld, so that I can have a an embedded server, still this same application should be able to connect to a DB server (over internet).
From what I've read and tried, the libmysqld library does not provide the functionality to connect to a 'standalone' server (over IP or socket).
I have the impression that to have the two functions (embedded server and connection to standalone server) a single application should link to both libmysqlclient and libmysqld.
The problem I see there is that as these two libraries have exactly the same API, I have no precise clue on how to link both libraries and know precisely which implementation of a library function I'm calling.
So far the only solution that I kind of see is to modify the sources of one of the library so that it has a different API than the other (like modifying the mysql_ prefix of the API functions to something else - -mysqld_ for example-). But this solution does not seems very clean to me, unless there is a standard way to do it from within the configure/build process of mysql (which I've not found).
I'd be very grateful to anyone who can provide : 1. a way to have both functionalities using a single API/library. 2. a better idea to avoid the API clash while linking to both library. 3. a 'clean' (or at least automatic) way to modify one of the API. Or any insight on these matters.
Thanks in advance.
Serge.
- ---------------------------------------------------- Serge Cohen
GPG Key ID: 9CBB58FB - ---------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (Darwin)
iD8DBQE/iH365EPeG5y7WPsRAiLgAJsG6mM0/sqPIF3o+mlvAmDhRiwghACeNDIH WkqXgcyI56h/1JYQuh1T0Y8= =kfgk -----END PGP SIGNATURE-----
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]