Hi all,
I am having a problem with adding a large String to a mySQL field.. The size of the String is ~ 4MB and the datatype of the field to which I am inserting the string is - longtext.
When I try to insert the String I get errors - i.e.
"com.mysql.jdbc.PacketTooBigException"
I have tried to set the max_allowed_packet value, in the my.ini file.
i.e. set-variable =max_allowed_packet=16M
although, when I try again to repeat the process once I have set the max_allowed_packet.. I still get the same error Message. It seems that even when I set the max_allowd_packet to 16M, the actual allowed maximum value is 1M.
I hope someone can help with this
Thanks
I am having a problem with adding a large String to a mySQL field.. The size of the String is ~ 4MB and the datatype of the field to which I am inserting the string is - longtext.
When I try to insert the String I get errors - i.e.
"com.mysql.jdbc.PacketTooBigException"
I have tried to set the max_allowed_packet value, in the my.ini file.
i.e. set-variable =max_allowed_packet=16M
although, when I try again to repeat the process once I have set the max_allowed_packet.. I still get the same error Message. It seems that even when I set the max_allowd_packet to 16M, the actual allowed maximum value is 1M.
I hope someone can help with this
Thanks