gpt4 book ai didi

mysql - 运行 Sonar 分析时出现 PacketTooBigException

转载 作者:IT王子 更新时间:2023-10-29 00:38:53 27 4
gpt4 key购买 nike

当我尝试运行 Sonar 分析时出现此异常

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

我应该在 Sonar 服务器上的什么地方设置这个值?

我正在使用 Sonar 3.4.1 和 MySQL 5.x

最佳答案

找到配置文件my.cnf(如果你的MySQL运行在Windows中,找到my.ini)

将其添加到配置文件中

[mysqld]
max_allowed_packet=256M

然后,重启mysql

  • 对于 Linux,service mysql restart
  • 对于 Windows
    • net stop mysql
    • 网络启动mysql

试一试!!!

关于mysql - 运行 Sonar 分析时出现 PacketTooBigException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14592351/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com