Jim Winstead wrote:

> On Thu, Jul 20, 2006 at 08:41:23AM +1200, Frank wrote:
>> Dear all,
>> 
>> is it a desired feature that the embedded version of the client library
>> still tries to create a network connection when I pass a hostname into
>> connect?
> 
> Yes, the embedded version also acts as a standard MySQL client.
> 
>> Is it possible to influence this behaviour, so that the API just ignores
>> settings like the hostname and the port and always connects to the
>> embedded server?
> 
> You can call mysql_options(mysql, MYSQL_OPT_USE_EMBEDDED_CONNECTION, 0)
> after calling mysql_init() and before calling mysql_real_connect().
> 
> http://dev.mysql.com/doc/refman/5.1/en/mysql-options.html
> 
> Jim Winstead
> MySQL Inc.

Thanks for the quick reply.
What I am looking for is a way of setting this globally, as the connection
is created in a third party library where I can't set options.

Thanks for your help,

Frank


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

Reply via email to