Definition of mysql_server_init

2006-12-13 Thread Nishant Gupta
Hi All I am trying to port my MySQL code on HP-UX, and am anuable to link my code as I am getting the standard functions like mysql_query(), mysql_store_result() etc as undefined. I am currently linking my code with libmysqlclient_r.a. Do I need any other library to be linked as well?? --

mysql_server_init(), C API, And Dying Processes

2006-11-10 Thread David T. Ashley
What happens if I use the C API of MySQL and the process dies (maybe a pointer error or something)? a)Will the connection be killed automatically? b)What about "LOCK TABLES" and similar statements that were issued ... will the locks clear automatically? Thanks.

mysql_server_init crashes

2005-03-03 Thread Wolfgang Rohdewald
Hi, this is 4.0.23 embedded. If the datadir defined in my.cnf does not exist: 050303 17:48:04 bdb: /home/vdr/mysql/log.01: No such file or directory 050303 17:48:04 bdb: PANIC: No such file or directory 050303 17:48:04 Can't init databases it should return an error condition instead o

mysql_server_init

2004-06-01 Thread Bono, Saroj AA R62
I have the call to mysql_server_init() cided exactly as it appears in the mysql manual sample. It returns 0 (success), yet the server is never sarted . I check that its not running by trying to type in the mysql command line (I had started the server normally before, started mysql, shutdown the

Segmentation Fault in mysql_server_init() while using Embedded server

2003-06-16 Thread Satheesh Ganapathi Subramanian
*two; mysql_server_init(argc, argv, (char **)server_groups); one = db_connect("hello"); two = db_connect(NULL); db_do_query(one, "SHOW TABLE STATUS"); db_do_query(two, "SHOW DATABASES"); mysql_close(two); mysql_close(one); /* This must be called after all other my

Re: HELP mysql_server_init embedded in a DLL?

2003-03-02 Thread Gelu Gogancea
Hi, - Original Message - From: "Derick Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, February 28, 2003 9:09 PM Subject: Re: HELP mysql_server_init embedded in a DLL? > Attempts at creating an embedded mySQL DLL for

Re: HELP mysql_server_init embedded in a DLL?

2003-02-28 Thread Derick Smith
application. I tried hard coding the arguments and servergroups for mysql_server_init (I also used memset to initialize the strings to 0), I get the same result. The lib I create will always work with a C program, but the DLL will not work with VB. Does anyone have any more suggestions on how to use

Re: HELP mysql_server_init embedded in a DLL?

2003-02-28 Thread Gelu Gogancea
Hi, - Original Message - From: "Derick Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 27, 2003 10:33 PM Subject: Re: HELP mysql_server_init embedded in a DLL? > I am posting this again, in hope that I w

Re: HELP mysql_server_init embedded in a DLL?

2003-02-27 Thread Derick Smith
I am posting this again, in hope that I will get a response. I tried doing the following (see VB code below. I got this code from another site): I get the same error message as if I was calling the DLL I created in C which calls mysql_server_init. Is it impossible to call this function from

mysql_server_init embedded in a DLL?

2003-02-26 Thread Derick Smith
Hi! I am trying to create a DLL that will hide embedded mySQL functions for use with VB. I am using mysqlserver.lib. I am able to compile and execute the following code. This has to be done in C because VB is too slow :-( If mysql_server_init function is run in the DLL from Visual Basic. I get

Re: Where is mysql_server_init defined ?

2002-08-28 Thread Gelu Gogancea
nal Message - From: "Tobias Eriksson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 28, 2002 4:15 PM Subject: Where is mysql_server_init defined ? Hi, I'm trying to figure out how to implement an embedded mySQL database in my application, but seems

Where is mysql_server_init defined ?

2002-08-28 Thread Tobias Eriksson
Hi, I'm trying to figure out how to implement an embedded mySQL database in my application, but seems to have stumbled on something strange. The documentation and on the web everyone seems to refer to a method/function called 'mysql_server_init()' however, my compiler complaine