当前位置:网站首页>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
边栏推荐
- Identifier, keyword, data type
- Common auxiliary classes
- UDP protocol and TCP protocol
- Basic knowledge of convolutional neural network
- How to introduce opencv into cmake project
- 列表、元组、字典和集合的区别
- Openvino only supports Intel CPUs of generation 6 and above
- OpenCV----YOLACT实例分割模型推理
- Source code and update details of new instance segmentation network panet (path aggregation network for instance segmentation)
- CRF based medical entity recognition baseline
猜你喜欢
標識符、關鍵字、數據類型
抽象类、接口、常用关键字
Express middleware ① (use of Middleware)
Shopping mall for transportation tools based on PHP
Let matlab2018b support the mex configuration of vs2019
减治思想——二分查找详细总结
A sword is a sword. There is no difference between a wooden sword and a copper sword
ROS series (III): introduction to ROS architecture
硬核拆芯片
QT program integration easyplayer RTSP streaming media player screen flicker what is the reason?
随机推荐
【NeurIPS 2019】Self-Supervised Deep Learning on Point Clouds by Reconstructing Space
ROS series (IV): ROS communication mechanism series (1): topic communication
Detailed explanation on the use of annotation tool via (VGg image annotator) in mask RCNN
Concepts of objects and classes
創下國產手機在海外市場銷量最高紀錄的小米,重新關注國內市場
Picture synthesis video
Using VBA interval to extract one column from another in Excel
Vs studio modifies C language scanf and other errors
[AI vision · quick review of robot papers today, issue 29] Mon, 14 Feb 2022
UDP protocol and TCP protocol
Express中间件②(中间件的分类)
【BIM入门实战】Revit中的墙体层次以及常见问题解答
Laboratory safety examination
ROS series (IV): ROS communication mechanism series (3): parameter server
Thought of reducing Governance -- detailed summary of binary search
ROS series (II): ROS quick experience, taking HelloWorld program as an example
Openvino only supports Intel CPUs of generation 6 and above
RuntimeError: output with shape [4, 1, 512, 512] doesn‘t match the broadcast shape[4, 4, 512, 512]
一个函数秒杀2Sum 3Sum 4Sum问题
The super large image labels in remote sensing data set are cut into specified sizes and saved into coco data set - target detection