At 10:57 -0700 8/16/04, John Mistler wrote:
I have written an application for MAC OS X.3 that interfaces with MySQL
through the Client/Server approach.  I would like to simplify the
installation process of the application by using the embedded MySQL server
instead.  However, I am having trouble figuring out how to:

1. Include the MySQL embedded server in my application bundle

Dunno.

2. Initiate the embedded server from within my application's code

mysql_real_connect(), just like a client/server program.

3. Change my existing queries to work with the embedded server

No changes needed.


The changes needed are that you need to call mysql_server_init() before opening the connection, and mysql_server_end() after you close the connection. There's some discusssion of this in the book MySQL, 2nd Edition (disclaimer: I wrote it). See chapter 6. This chapter is available online along with the sample code, you can get it at:

http://www.kitebird.com/mysql-book/


-- Paul DuBois, MySQL Documentation Team Madison, Wisconsin, USA MySQL AB, www.mysql.com

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



Reply via email to