Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm trying to run sonar-runner.bat, when it almost finished analyzing, it's written max_allowed_packet more than something something. So it fails.

Through deep search, everyone said that i should configer my.ini file inside MySQL folder. But, I don't have MySQL Installed.

Log: Error: unable to execute sonar error: caused by: unable to save file sources error: caused by:

Error updating database. cause: com.mysql.jdbc.packettoobigexception: packet for query is too large (3215747 >1048576). you can change this..bla..bla

the error may involve org.sonar.core.source.db.filesourcemapper.insert-inline

the error occurred while setting parameters

how can i change it? help!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
167 views
Welcome To Ask or Share your Answers For Others

1 Answer

As @Fabrice- SonarQube Team suggested that you are running SonarQube Server on top of Mysql. If you want to check you can check within Sonar.properties file.

for removing this issues you have to modify the my.cnf(Linux) or my.ini(for windows).

[mysqld]

max_allowed_packet=256M

if you want to set the same Globally.Log in to Mysql and run the following command.

SET GLOBAL max_allowed_packet=1073741824;

Once you do this settings, Please restart Mysql Server.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...