当前位置:网站首页>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
边栏推荐
- Cmake qmake simple knowledge
- [mathematical modeling] my mathematical memory
- VS Studio 修改C語言scanf等報錯
- 伦敦银最新价格走势图与买卖点
- Abstract classes, interfaces and common keywords
- [string] ranking of country names ----- problem solving notes
- 减治思想——二分查找详细总结
- What if you encounter symbols you don't know in mathematical formulas
- TreeSet课后练习
- 【BIM入门实战】Revit建筑墙体:构造、包络、叠层图文详解
猜你喜欢
Hard core chip removal
Set经典小题目
Paddlepaddle does not support arm64 architecture.
Software testing process
Installation and configuration of MinGW under win10
【ICCV 2019】MAP-VAE:Multi-Angle Point Cloud-VAE: Unsupervised Feature Learning for 3D Point Clouds..
【BIM+GIS】ArcGIS Pro2.8如何打开Revit模型,BIM和GIS融合?
Difference between LabVIEW small end sequence and large end sequence
Retrieval question answering system baseline
Who will answer the question?
随机推荐
A function second kill 2sum 3sum 4sum problem
Wechat applet canvas draws a simple asymptotic color of the dashboard
[AI vision · quick review of robot papers today, issue 28] wed, 1 Dec 2021
Definition, understanding and calculation of significant figures in numerical analysis
Let matlab2018b support the mex configuration of vs2019
Variables, constants, operators
小红书被曝整体裁员20%,大厂之间内卷也很严重
标识符、关键字、数据类型
The whole process of connecting the newly created unbutu system virtual machine with xshell and xftp
ROS series (I): rapid installation of ROS
SQL learning record
Xiaomi, which has set the highest sales record of domestic mobile phones in overseas markets, paid renewed attention to the domestic market
Jupiter notebook modify configuration file setting startup directory is invalid
Qt程序集成EasyPlayer-RTSP流媒体播放器出现画面闪烁是什么原因?
Digital image processing third edition Gonzalez notes Chapter 2
(valid for personal testing) compilation guide of paddedetection on Jetson
【ICCV 2019】MAP-VAE:Multi-Angle Point Cloud-VAE: Unsupervised Feature Learning for 3D Point Clouds..
抽象类、接口、常用关键字
ROS series (IV): ROS communication mechanism series (6): parameter server operation
ROS series (4): ROS communication mechanism series (4): topic communication practice