Re: Connect to MySQL: PacketTooGBigException
Posted by: Arthur Chan
Date: May 09, 2016 09:43AM

Yes, like this:

conn = DriverManager.getConnection("jdbc:mysql://<ip-address>:21/dbName?maxAllowedPacket=3158578", "scott", "tiger");

I'll post my whole LoadDriver class shortly...
The host does use port 21.

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.