Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySql PacketTooBigException #3

Open
BalintPogatsa opened this issue Dec 4, 2018 · 1 comment
Open

MySql PacketTooBigException #3

BalintPogatsa opened this issue Dec 4, 2018 · 1 comment

Comments

@BalintPogatsa
Copy link

The default max_allowed_packet config value of MySql was not enough for me, so when I tried to upload an analysis, I've faced the following exception:

com.mysql.jdbc.PacketTooBigException: Packet for query is too large (6212360 > 4194304). You can change this value on the server by setting the max_allowed_packet' variable.

The following answer helped me:
https://stackoverflow.com/questions/14592351/packettoobigexception-when-running-a-sonar-analysis
(both MySql and the sonar server should be restarted)

There was another step, as the my.ini file was not created in the image, so I had to create my.ini from my-default.ini and added the following line:

max_allowed_packet=256M

@dnikolayev
Copy link
Collaborator

Thnx, Very interesting.
Could you please give some info about your environment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants