dbTalk Databases Forums  

mysql_real_connect - problem

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss mysql_real_connect - problem in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default mysql_real_connect - problem - 06-28-2006 , 04:44 AM






--Next_1151487534---0-203.199.83.28-28415
Content-type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

hello all,=0A=0Aactually i'm using "mysql_real_connect" this api=0Ato conne=
ct to server in network but unable to get=0Aconnected.=0A=0Amysql_real_conn=
ect(&mySQLConnector,"comp07 3306","root","pwddb","db_server",0,NULL,CLIENT_=
MULTI_STATEMENTS);=0A=0AThe server name is "comp07". i tried it with server=
ip-address=0Awith possible combination.=0A=0Acomp07 3306=0Acomp07:3306=0Ac=
omp07::3306=0Acomp07=0A192.168.1.5=0A192.168.1.5 3306=0A=0Aso any one can s=
olve my problem. waiting for urgent reply
--Next_1151487534---0-203.199.83.28-28415--


Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default RE: mysql_real_connect - problem - 06-28-2006 , 05:01 AM







Try putting the port in the port parameter of the API, rather than in the
host string. I.E.

mysql_real_connect(&mySQLConnector,"comp07","root" ,"pwddb","db_server",3306,
NULL,CLIENT_MULTI_STATEMENTS);

See http://dev.mysql.com/doc/refman/5.0/...l-connect.html for
details.

By the way this is a mailing list for MySql++, not for the MySql C API. If
you need any more help with the C API you'd be better off trying the general
MySql mailing list at http://lists.mysql.com/ .


-----Original Message-----
From: atul lokare [mailto:lokare_atul (AT) rediffmail (DOT) com]
Sent: 28 June 2006 10:39
To: plusplus (AT) lists (DOT) mysql.com
Subject: mysql_real_connect - problem

hello all,

actually i'm using "mysql_real_connect" this api to connect to server in
network but unable to get connected.

mysql_real_connect(&mySQLConnector,"comp07
3306","root","pwddb","db_server",0,NULL,CLIENT_MUL TI_STATEMENTS);

The server name is "comp07". i tried it with server ip-address with possible
combination.

comp07 3306
comp07:3306
comp07::3306
comp07
192.168.1.5
192.168.1.5 3306

so any one can solve my problem. waiting for urgent reply


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.