Re: Connect to MySQL: PacketTooGBigException
Posted by: Filipe Silva
Date: May 09, 2016 10:12AM

There seems to be some kind of confusion here. Was this the setting you had when you got the stack trace you pasted in the first post?

Anyway, you may want to stick to the maximum packet size defined in the server and as such you don't need to set the 'maxAllowedPacket' in the connection string. Have you tried without setting it?

Moreover, you cannot set a 'maxAllowedPacket' value in the client higher than the server's 'max_allowed_packet' value. In such case the driver silently falls back to the lowest of the two values. Not that it seems to be your case but keep that in mind.

Options: ReplyQuote

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.