List:MySQL++« Previous MessageNext Message »
From:Matt Dargavel Date:June 28 2006 9:59am
Subject:RE: mysql_real_connect - problem
View as plain text  
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/en/mysql-real-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@stripped] 
Sent: 28 June 2006 10:39
To: plusplus@stripped
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_MULTI_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

Thread
mysql_real_connect - problematul lokare28 Jun
  • RE: mysql_real_connect - problemMatt Dargavel28 Jun