PacketTooBigException when running a sonar analysis

前端 未结 2 419
再見小時候
再見小時候 2021-01-04 18:24

When I try and run a sonar analysis I get this exception

com.mysql.jdbc.PacketTooBigException: Packet for query is too large (1807198 > 1048576). Y

2条回答
  •  萌比男神i
    2021-01-04 18:54

    Locate the config file my.cnf (If your MySQL is running in Windows, locate my.ini)

    Add this to the config file

    [mysqld]
    max_allowed_packet=256M
    

    Then, restart mysql

    • For Linux, service mysql restart
    • For Windows
      • net stop mysql
      • net start mysql

    Give it a Try !!!

提交回复
热议问题