当前位置:网站首页>MySQL 2013 lost connection to MySQL server during query
MySQL 2013 lost connection to MySQL server during query
2022-04-23 03:56:00 【Bug】
mysql newspaper 2013 error
Antecedents
Because we need to write a unified file management platform , File upload is required , download , Preview and other functions ,Mysql Realize the storage of files . Use QT Development UI function . And successfully upload the file (size<4); At present, it is not found or known when the file is larger than 4M when mysql Will report a mistake
Online test
Because the files uploaded by your own test are bytes or kb size ; Can upload successfully Mysql, No other considerations .
After online , It will prompt that the file upload failed , Then check the error prompt :
QSqlError("2013", "QMYSQL3: Unable to execute statement", "Lost connection to MySQL server during query")
error , Server Disconnected ,
analysis
Because there are successful upload examples , It's definitely not a code problem , see mysql To configure , Query response time , Maximum query data , The default is 4M, The tested file is larger than 4M There will be an error , So you need to modify the configuration file ,
solve
mysql Install directory or search the system disk for element files my.ini And open ,
Add the statement :
# Size customization
max_allowed_packet=16M
Location
So where should the statement be placed in the configuration file ,
[mysql] after
or
[mysqld] after
In both places And restart Mysql service , It turned out to be a failure ,
Finally, please max_allowed_packet The statement is stored at the end of the configuration file , Restart the service to upload
版权声明
本文为[Bug]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230351311483.html
边栏推荐
- 51 single chip microcomputer: D / a digital to analog conversion experiment
- Cause analysis of incorrect time of AI traffic statistics of Dahua Equipment Development Bank
- STM32 advanced timer com event
- Common auxiliary classes
- 作为一名码农,女友比自己更能码是一种什么体验?
- The difference between lists, tuples, dictionaries and collections
- 【ICCV 2019】MAP-VAE:Multi-Angle Point Cloud-VAE: Unsupervised Feature Learning for 3D Point Clouds..
- 标识符、关键字、数据类型
- 列表、元组、字典和集合的区别
- 硬核拆芯片
猜你喜欢

OpenCV----YOLACT实例分割模型推理

A function second kill 2sum 3sum 4sum problem

Abstract classes, interfaces and common keywords

ROS series (IV): ROS communication mechanism series (3): parameter server

Who will answer the question?

QtSpim手册-中文翻译
![[AI vision · quick review of NLP natural language processing papers today, issue 28] wed, 1 Dec 2021](/img/e1/ffa8c06b0856e16236b4c5ded882d7.png)
[AI vision · quick review of NLP natural language processing papers today, issue 28] wed, 1 Dec 2021

【测绘程序设计】坐标反算神器V1.0(附C/C#/VB源程序)

Qt程序集成EasyPlayer-RTSP流媒体播放器出现画面闪烁是什么原因?

Solve the technical problems in seq2seq + attention machine translation
随机推荐
创下国产手机在海外市场销量最高纪录的小米,重新关注国内市场
php导出Excel表格
【NeurIPS 2019】Self-Supervised Deep Learning on Point Clouds by Reconstructing Space
[latex] formula group
Express middleware ① (use of Middleware)
MATLAB lit plusieurs diagrammes fig et les combine en un seul diagramme (sous forme de sous - Diagramme)
Use the thread factory to set the thread name in the thread pool
Basic knowledge of convolutional neural network
Matlab reads multiple fig graphs and then combines them into one graph (in the form of sub graph)
UDP协议与TCP协议
一个函数秒杀2Sum 3Sum 4Sum问题
matlab讀取多張fig圖然後合並為一張圖(子圖的形式)
Now is the best time to empower industrial visual inspection with AI
Retrieval question answering system baseline
Use of rotary selector wheelpicker
matlab读取多张fig图然后合并为一张图(子图的形式)
The great gods in acmer like mathematics very much
VSCode配置之Matlab极简配置
[AI vision · quick review of robot papers today, issue 29] Mon, 14 Feb 2022
Counting and sorting (C language implementation) -- learning notes