`
小抽又回来了
  • 浏览: 11280 次
  • 性别: Icon_minigender_2
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

Packet for query is too large (30,647,972 > 20,971,520). You can change this val

阅读更多

做excel 数据批量导入功能2万条数据 报错

com.mysql.cj.jdbc.exceptions.PacketTooBigException: Packet for query is too large (30,647,972 > 20,971,520). You can change this value on the server by setting the 'max_allowed_packet' variable.

; Packet for query is too large (30,647,972 > 20,971,520). You can change this value on the server by setting the 'max_allowed_packet' variable.; nested exception is com.mysql.cj.jdbc.exceptions.PacketTooBigException: Packet for query is too large (30,647,972 > 20,971,520). You can change this value on the server by setting the 'max_allowed_packet' variable.] with root cause

解决方案

show VARIABLES like '%max_allowed_packet%';

 

set global max_allowed_packet = 3*1024*1024*10

 

 设置后 需要断开连接后再查询即可

 

 

 

分享到:
评论

相关推荐

    com.mysql.jdbc.PacketTooBigException: Packet for query is too large (11087 > 102

    在描述中提到的错误信息 "Packet for query is too large (11087 > 102)" 指明了问题的具体情况,即数据包的大小(11087字节)超出了MySQL默认允许的最大值102字节。 这个问题通常发生在以下几种情况: 1. **大数据...

    MySQL Packet for query is too large 问题及解决方法

    在上述示例中,当遇到“Packet for query is too large (1040 > 1024)”错误时,用户首先通过`SHOW VARIABLES LIKE '%max_allowed_packet%'`查询了当前的设置,发现是1024KB。然后,他们尝试通过命令行临时增加这个...

    Mysql报错Packet for query is too large问题解决

    今天在往mysql中插入数据时遇到的问题,翻译过来的意思是:查询数据包太大 建议修改max_allowed_packet参数值。 针对我执行的插入操作来说,意味着一次性执行的sql语句太大,超过了mysql默认设置的值(我用的是...

    Mysql的longblob字段插入数据问题解决

    想改变这个问题,需要注意几点: com.mysql.jdbc.PacketTooBigException: Packet for query is too large (2054817 > 1048576). You can change this value on the server by setting the max_allowed_packet’ ...

    88秒插入1000万条数据到MySQL数据库表的操作方法

    com.mysql.jdbc.PacketTooBigException: Packet for query is too large (4232009 > 4194304). You can change this value on the server by setting the max_allowed_packet’ variable. 出现上面的错误是因为...

    Mysql的max_allowed_packet设定

    当日志中出现了诸如:“Package for query is too large (xxxxxxxx > 4194304). You can change this value on the server by setting the max_allowed_package variable”的提示的时候,错误的本身就清楚的提示了...

    MySQL批量插入和唯一索引问题的解决方法

    MySQL批量插入问题 ...nested exception is com.mysql.jdbc.PacketTooBigException: Packet for query is too large (5677854 > 1048576). You can change this value on the server by setting the max_allowed_pac

    TS reader

    - added warranty disclaimer: no warranty at all<br/><br/>2002.05.03: alpha 0.1.2<br/> - parse content of all 13818-1 descriptors<br/> - added change log to this dialog box<br/><br/>2002.04.25: ...

    BUS Hound

    If saving to a zip file, the comment is also used for the zip file comment.<br><br><br><br>The Settings Window<br><br>This Window allows you to customize the capture process. Checkbox options in this...

    Magic Packet(TM)

    This is the release notice for the PCnet Magic Packet(TM) Utility Revision 1.00 software. All files are in DOS FAT format. AMD抯 Magic Packet utility is a convenient tool for system administrators ...

    Labview调用WinPcap使用千兆以太网

    It also parses out the ethernet and IP header information, as well as timestamp information for each packet. The VI enumerates all the ethernet adapters on your system and allows you interactively ...

    Practical Packet Analysis 3rd Edition

    The Practical Packet Analysis course is perfect for beginners to intermediate analysts, but seasoned pros will probably learn a few useful techniques too. Whether you’ve never capture packets before ...

    启动报错:验证加密狗无效 error:1001-mysql参数导致.docx

    nested exception is com.mysql.jdbc.PacketTooBigException: Packet for query is too large (1280 > 1024). You can change this value on the server by setting the max_allowed_packet' variable ``` - **...

    Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: ….. this is incompatible with sq

    3、Can’t connect to local MySQL server through socket ‘/Data/mydata/mysql.sock’ socket文件目录不对应导致的问题 4、今天要说的就是 没有打开only_full_group_by Cause:...

    思科Cisco Packet Tracer 6.2_Hack520.com.zip

    计网学习练习的软件

    WinAircrackPack

    无线网络破解工具What is aircrack ? aircrack is a set of tools for auditing wireless networks: + airodump: 802.11 packet capture program ... Note: you can also use Kismet .dump files for WEP cracking.

    Packet Tracer 7.1.1 for Windows 64 bit.zip

    **Cisco Packet Tracer 7.1.1 for Windows 64 bit** 是一款由思科公司推出的强大网络模拟工具,专为教育和培训领域设计。它允许用户在虚拟环境中构建、配置、故障排除和管理网络,无需实际硬件设备。这款模拟器支持...

    计算机网络第六版答案

    For example, she can easily change the phrase “Alice, I owe you $1000” to “Alice, I owe you $10,000”. Furthermore, Trudy can even drop the packets that are being sent by Bob to Alice (and vise-...

Global site tag (gtag.js) - Google Analytics