Re: MAX_ALLOWED_PACKET and BLOBS
Posted by: John Zandbergen
Date: November 07, 2005 06:57AM

After rereading your problem, maybe this is a solution?

1. Create a file mysettings.cnf. This file should be copied to the client's computer (or better: created with your program). This file should contain the following:

[client]
set-variable = max_allowed_packet=10M

2. Doe this when opening the connection:

mysql = mysql_init(NULL);

res = mysql_options(mysql, MYSQL_READ_DEFAULT_FILE, "/mysettings.cnf");


I debugged it and found that mysql->net.max_packet_size is 1073741824. That should be 10M. I'm not able to test if it really runs with the big blobs...

Hope this help (you more),
John

Options: ReplyQuote


Subject
Views
Written By
Posted
942
November 04, 2005 03:29AM
532
November 04, 2005 09:13AM
467
November 07, 2005 02:58AM
524
November 07, 2005 04:46AM
Re: MAX_ALLOWED_PACKET and BLOBS
672
November 07, 2005 06:57AM
583
November 08, 2005 04:56PM
562
November 10, 2005 03:29PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.