-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi again;

A few days ago I've posted the following question (during a WE)... unfortunately I had no answer, so I'm just giving it a second chance.
As this is the second (and last) round for this question, please don't restrict yourself,


I'd be VERY happy to receive any idea/suggestion/tips/comments (including, if you know a better place to ask these questions, I've not found mailing list dedicated to the embedded server libmysqld).

Again thanks in advance to anyone taking some time to help!

Here is the previous post:
************************************************************************ ****
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/jm3d5EPeG5y7WPsRAlDAAKDzhDis3xtDkW7InBoEakeT25NrGQCg5+e1
u2FCct8WvMBNO3PyvqETJOQ=
=Bfqj
-----END PGP SIGNATURE-----



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to