当前位置:网站首页>MySQL:Got a packet bigger than ‘max_ allowed_ packet‘ bytes
MySQL:Got a packet bigger than ‘max_ allowed_ packet‘ bytes
2022-06-11 09:21:00 【Asurplus、】
We went to MySQL When importing data , When there's too much data , You're going to report a mistake :
Got a packet bigger than 'max_allowed_packet' bytes
This is because the maximum data allowed exceeds our default setting , So we need to change it MySQL Default Settings
1、 command
- View the current configuration parameters
SHOW VARIABLES LIKE '%max_allowed_packet%';

4194304/1024/1024=4M, That is to say, the maximum data allowed by our default configuration is 4M
- Modify the current configuration
SET GLOBAL max_allowed_packet = 50 * 1024 * 1024;
In this way, we modify the maximum data allowed to be 50M
2、 The configuration file
- Windows In the environment
Find... In the following path my.ini file
C:\ProgramData\MySQL\MySQL Server 5.7\my.ini
- Linux In the environment
You can enter a command to find
whereis my.cnf
After finding the configuration file , Add parameters
max_allowed_packet=52428800
If you find deficiencies in reading , Welcome to leave a message !!!
边栏推荐
- How win10 Home Edition connects to remote desktop
- Openstack explanation (XXIII) -- other configurations, database initialization and service startup of neutron
- [image processing] spatial domain image enhancement
- Device = depthai Device(““, False) TypeError: _init_(): incompatible constructor arguments.
- 1400. construct K palindrome strings
- 203. remove linked list elements
- Bowen dry goods | Apache inlong uses Apache pulsar to create data warehousing
- [share] how do enterprises carry out implementation planning?
- Day39 process object and other method mutexes
- OpenCV OAK-D-W广角相机测试
猜你喜欢

Modularnotfounderror: no module named 'find_ version’

DOS command virtual environment

Blinn Phong reflection model

Type-C docking station adaptive power supply patent protection case
![[C language - data storage] how is data stored in memory?](/img/cb/2d0cc83fd77de7179a9c45655c1a2d.png)
[C language - data storage] how is data stored in memory?

Day41 process pool and thread pool

Augmented reality experiment IV of Shandong University

PD chip ga670-10 for OTG while charging

Type-C Bluetooth speaker single port rechargeable OTG solution

Machine learning notes - in depth Learning Skills Checklist
随机推荐
203. remove linked list elements
小型制氧机解决方案PCBA电路板开发
【芯片方案】红外人体测温仪方案设计
openstack详解(二十二)——Neutron插件配置
MSF evasion模块的使用
自动化运维文章大合集
83. delete duplicate elements in the sorting linked list
876. intermediate node of linked list
[image processing] spatial domain image enhancement
What are the types of garment ERP system in the market?
山东大学增强现实实验四
MySQL startup error "bind on tcp/ip port: address already in use"
shell脚本之sed详解 (sed命令 , sed -e , sed s/ new / old / ... )
Day39 process object and other method mutexes
ERP体系能帮忙企业处理哪些难题?
[software] ten skills to maximize the value of ERP system
When the enterprise makes a decision, which part should lead the ERP project?
1854. 人口最多的年份
【分享】企业如何进行施行规划?
Machine learning notes - spatial transformer network using tensorflow