Quantcast
Channel: MySQL Forums - Install & Repo
Viewing all articles
Browse latest Browse all 7244

max_allowed_packet (no replies)

$
0
0
I've just downloaded and installed the latest version of MySQL Community Server and configured it with the wizard as a developer server. It is installed on AMD quad processor system with 8 gigs of memory and Windows 7 Professional 64 bit.

I'm a .NET framework programmer and have an MS SQL based application that I am converting to use under MySQL. My problem is that I use the IMAGE data type in MS SQL, which is the equivalent of LONGBLOB in MySQL and have run into a problem with max_allowed_packet. Images are not cheap to store, and will frequently exceed the 1 meg capacity. I've spent the better part of today trying to resolve this issue and it seems to boil down to this: max_allowed_packets is set to read only and no amount of prodding will change it's value.

I've done the following:
1.) Added an entry to mysql.ini, restarted the server... no change
2.) used the SET @@SESSION.max_allowed_packet query, which quickly informed me that the variable was read only and suggested using set global.
3.) used the SET @@GLOBAL.max_allowed_packet=32M query which told me the format was wrong! Changed the 32M to 33554432 and got a successful query. However querying the variable showed that it didn't change!

At this point I'm at a loss as to what to do. Is there any way to change the mode of the max_allowed_packet from read only??? Any suggestions will be appreciated.

Viewing all articles
Browse latest Browse all 7244

Trending Articles