Hi,

I am having responsibility to connect MySQL to COBOL. after such a long analysing I 
found there
are some C API function to connect to MySQL provided by itself. 

In COBOL I have the option to CALL external programs written in other languages. I 
follow this way
to made connection to MySQL from COBOL. 

Initially I struck up with Linker error while linking libmysql.lib provided by MySQL 
file into
COBOL, i.e, linking of this library file enable the calling of C API functions from 
COBOL and
invoke the appropriate function. 

I resolve this, by convert the libmysql.dll file into libmysql.def using pexports.exe 
(it is a
free downloadable utility) and then using LIB.exe in my COBOL compiler I convert the 
libmysql.def
file into libmysql.lib, which is understandable lib file format to my COBOL compiler. 
So my COBOL
compiler recognize those libmysql.lib file while linking but during runtime it shows 
error as;

       Can’t Connect to MySQL server on localhost (10061)

Actually I am trying to connect to the MySQL Server in Linux machine, I can able to 
connect to
server via, MySQLCC, MySQL Explorer (a free utility from Toolmagic Softwares) and more 
than that I
can connect via simple VC++ program using this C API functions too.

I thought that I never missed any single step to be followed while MySQL server 
startup.

I appreciate any valuable suggestions with thanks.

Regards,
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