|
|
|
|
|
|
| Author |
Message |
Frank *nix forums Guru Wannabe
Joined: 04 Mar 2005
Posts: 102
|
Posted: Wed Jul 19, 2006 11:52 pm Post subject:
Re: connecting to the embedded server
|
|
|
Jim Winstead wrote:
| Quote: | 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/mysql?unsub=gcdmg-mysql@m.gmane.org |
|
| Back to top |
|
 |
Jim Winstead *nix forums beginner
Joined: 26 Mar 2005
Posts: 26
|
Posted: Wed Jul 19, 2006 8:44 pm Post subject:
Re: connecting to the embedded server
|
|
|
On Thu, Jul 20, 2006 at 08:41:23AM +1200, Frank wrote:
| Quote: | 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.
| Quote: | 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.
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql@m.gmane.org |
|
| Back to top |
|
 |
Frank *nix forums Guru Wannabe
Joined: 04 Mar 2005
Posts: 102
|
Posted: Wed Jul 19, 2006 8:41 pm Post subject:
connecting to the embedded server
|
|
|
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?
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?
Regards,
Frank
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql@m.gmane.org |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Dec 04, 2008 2:30 am | All times are GMT
|
|
Loans | Property in Spain | Fast Loans | Tax | Download PC Drivers
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|