Hi all,

Herewith I want to confirm that the info passed to the Socket
parameter of mysql_real_connect() is correct or not?

we have C API function to handle MySQL database using C programs.

MYSQL *mysql_real_connect(MYSQL *mysql, 
                        const char *host,
                        const char *user, 
                        const char *passwd, 
                        const char *db, 
                        unsigned int port, 
                        const char *unix_socket,  ---> this Argument.
                        unsigned long client_flag)

I have used C API from W2K machine to the Database in Linux server
MySQL DB version is 4.0.17-max. I can easily pass NULL to this argument, 
when I works with C it works fine... :)


But I am in a position to works under COBOL to connect MySQL to COBOL. 
I have used the external subroutine features of COBOL to call the C API
routines from COBOL. Under this situation I cann't able to pass NULL from 
COBOL. Shall I pass "mysql.sock" instead of NULL,

I have collected this data "mysql.sock" from the variable list of MySQL.
we can see this data for the variable socket by issuing 
SHOW VARIABLES command in the MySQL Prompt.

any suggestions are welcome...

thanks

Arun.

________________________________________________________________________
Yahoo! India Mobile: Download the latest polyphonic ringtones.
Go to http://in.mobile.yahoo.com

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to