mysql_real_connect MYSQL *mysql, const char *host, const char *user, const
char *passwd, const char *db, unsigned int port, const char *unix_socket,
unsigned int client_flag)

unix_socket: The seventh parameter is the Unix socket number. We will pass
NULL to indicate that we don't require a special Unix socket.

this is what the documentation says.
i am on a win machine and i am using VC++ to connect to the mysql on my
linux box.

what should i give as my unix_socket value?

each time i try to connect
mysql_real_connect

fails and says
"Error connecting to 192.168.5.10"

but, if i use the API, that has also been included with the mysql++, i can
connect properly.

arvind






_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to