Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
168 views
in Technique[技术] by (71.8m points)

sonarqube - max_allowed_packet, I don't have MySQL

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

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

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...