com.mysql.jdbc.PacketTooBigException java

前端 未结 2 1248
后悔当初
后悔当初 2020-12-12 01:45

I\'m having this problem when trying to connect to my database. Change the value of the variable but still this error persists

Value mysql

@@max_allo         


        
相关标签:
2条回答
  • 2020-12-12 02:12

    The jdbc client, also has a "maxAllowedPacket" setting.

    You may set your jdbc url like: jdbc:mysql://192.168.15.1/dbname?useUnicode=true&characterEncoding=UTF-8&maxAllowedPacket=16777216

    0 讨论(0)
  • 2020-12-12 02:15

    Had the same error, trying to connect to a MySQL database using DataGrip 2016.1 (from JetBrains).

    Troubleshooting further, I've realised that my records entry were wrong; the database password was not correct.

    Upon rectification using the correct database password, I no longer encountered the error and was able to connect successfully.

    0 讨论(0)
提交回复
热议问题