Segmentation fault using the C API

2003-06-18 Thread Sean Macmillan
This is a rather long message but I am stuck and am really in a bind so I wanted anyone who might be willing to point me in the right direction to have the full picture. I recently installed MySql 4.0.13 on a Intel Linux box running Red Hat 9. I used the RPM that I found on the MySQL site. I

C API Query Semantics

2003-06-19 Thread Sean Macmillan
Using the C API I have written a program that calls mysql_query() on a table with values I know to be in the table. It returns fine and I then call mysql_store_result. The problem I am having is figuring out how to dump the contents of that query to the screen (printf for example). I have tr

OCIBlobLocator what is this

2003-06-25 Thread Sean Macmillan
Using the C API for MySQL I am trying to convert a piece of ProC code so that I can use it in MySQL and I am having a bit of a problem. The function prototype lloks like the following: int write_blob(db_thread_t* dbh, OCIBlobLocator* blob_in, unsigned char* data, uint32_t data_len) I am not

Is there an equivalent to the Oracle ProC EXEC SQL...

2003-06-25 Thread Sean Macmillan
In a Pro C source file, a programmer uses the 'EXEC SQL ...' phrase to execute sql statements against the Oracle data base. Is the something comparable to this is the MySQL C API that I can use instead of manually building sql statements for insert, select, delete, drop, etc.? Sean Mac Millan

mysql_thread_init()

2003-06-26 Thread Sean Macmillan
Please bear with me here as I am new to this whole MySQL thing. Does anyone know where I can find a good example of how the C API function call mysql_thread_init() is implemented? Any help would be appreciated. Thanks in advance. Sean -- MySQL General Mailing List For list archives: http://

Re: mysql.sock doesn't exist

2003-06-26 Thread Sean Macmillan
I am having a similar problem. I looked at another Linux machine that has MySQL 4.0.13 running on it and the file /var/lib/mysql/mysql.sock is there but it is empty. So I created the file, chmod to 777 and then tried to light up /usr/bin/mysqld_safe and it is giving the same error message you

Re: mysql.sock doesn't exist

2003-06-27 Thread Sean Macmillan
I posted to this thread yesterday indicating that I had the same problem. After playing with it some more I realized that I was not starting MySQL with the appropriate user/group. As mentioned below, the user has to have write permissions to this directory in order to create the unix domain s