niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » MySQL
connecting to the embedded server
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Frank
*nix forums Guru Wannabe


Joined: 04 Mar 2005
Posts: 102

PostPosted: Wed Jul 19, 2006 11:52 pm    Post subject: Re: connecting to the embedded server Reply with quote

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

PostPosted: Wed Jul 19, 2006 8:44 pm    Post subject: Re: connecting to the embedded server Reply with quote

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

PostPosted: Wed Jul 19, 2006 8:41 pm    Post subject: connecting to the embedded server Reply with 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?

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Thu Dec 04, 2008 2:30 am | All times are GMT
navigation Forum index » Databases » MySQL
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Transfer qmail email account to postfix server tallman Postfix 0 Thu Jun 05, 2008 12:43 pm
No new posts NFS server on Solaris 10 gurgle Solaris 0 Tue Sep 04, 2007 7:05 pm
No new posts Help required for configuring the VPN Server in Linux SHERDIL security 0 Sun Nov 19, 2006 2:22 pm
No new posts Need Help with Program in Perl on a Netware Server fhadzocos@gmail.com Perl 3 Fri Jul 21, 2006 1:57 pm
No new posts Problem while accessing 64 bit Server thru 32 bit client Ganesh Server 0 Fri Jul 21, 2006 1:40 pm

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
[ Time: 1.0270s ][ Queries: 20 (0.9480s) ][ GZIP on - Debug on ]