当前位置:网站首页>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 !!!
边栏推荐
- Ecological co construction | 2021 streamnational excellent partner of the year comes out!
- 报错ModularNotFoundError: No module named ‘find_version’
- 【智能开发】血压计方案设计与硬件开发
- openstack详解(二十四)——Neutron服务注册
- Opencv oak-d-w wide angle camera test
- 制作业信息化为什么难施行?
- Award winning survey streamnational sponsored 2022 Apache pulsar user questionnaire
- 1493. 删掉一个元素以后全为 1 的最长子数组
- 机器学习笔记 - 卷积神经网络备忘清单
- MSF基于SMB的信息收集
猜你喜欢

openstack详解(二十二)——Neutron插件配置

Kubelet error getting node help

报错Version mismatch between installed depthai lib and the required one by the scrip.

DOS command virtual environment

Some learning records I=

Pytorch installation for getting started with deep learning

Award winning survey streamnational sponsored 2022 Apache pulsar user questionnaire

Typescript -- preliminary study of variable declaration

Blinn Phong reflection model

openstack详解(二十三)——Neutron其他配置、数据库初始化与服务启动
随机推荐
基于SIC32F911RET6设计的腕式血压计方案
Install jupyter in the specified environment
Fabric.js 動態設置字號大小
Openstack explanation (24) -- registration of neutron service
Erreur de démarrage MySQL "BIND on TCP / IP Port: Address already in use"
Machine learning notes - convolutional neural network memo list
[scheme design] scheme of household oximeter based on single chip microcomputer
自动化运维文章大合集
机器学习笔记 - 深度学习技巧备忘清单
报错Version mismatch between installed depthai lib and the required one by the scrip.
A summary of the problem type and method for proving the limit of sequence in postgraduate entrance examination
682. baseball game
Development of PCBA circuit board for small oxygen generator
MSF evasion模块的使用
1854. 人口最多的年份
【芯片方案】红外人体测温仪方案设计
20. valid brackets
[ERP system] how much do you know about the professional and technical evaluation?
Importance of implementation of clothing ERP in the project
制作业信息化为什么难施行?