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
Locate the config file my.cnf (If your MySQL is running in Windows, locate my.ini)
my.cnf
my.ini
Add this to the config file
[mysqld] max_allowed_packet=256M
Then, restart mysql
service mysql restart
net stop mysql
net start mysql
Give it a Try !!!