Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

A 'max_allowed_packet' Exception (3 replies)

$
0
0
Hi,everyone:
I have run into a tough problem, here is my stituation.
I run a MySQL for the persistence of activeMQ and it run give a exception 'the packet for query is bigger than ...'. Obviously, I re-configured my '/etc/my.cnf' to set the variable 'max_allowed_packet' to 100M which is more than what I need. To confirm it , I restarted both MySQL and ActiveMQ and check through 'SHOW VARIABLES like 'max_allowed_packet'', it is 100M. However, the Exception still exists. Then, I wrote a java program to insert a 20M record to MySQL, it is succeed. But where I query the record through 'SELECT ....', it says that 'Got packet bigger than 'max_allowed_packet' bytes'. I have no idea what to do right now , Do you guys have any suggestion?

Viewing all articles
Browse latest Browse all 884

Trending Articles