Home > Database > Mysql Tutorial > body text

mysql sql长度限制解决_MySQL

WBOY
Release: 2016-06-01 13:31:33
Original
1716 people have browsed it

bitsCN.com

mysql sql长度限制解决

 

今天发现了一个错误:

 

Could not execute JDBC batch update

 

最后发现原因是SQL语句长度大于1M,而我机器上的mysql是默认设置,

也就是说mysql通讯的数据包大小设置是1M,这就造成sql语句执行失败。

 

于是把mysql的配置文件(my.ini)中的max_allowed_packet = 6M变大,

 

问题就解决了。

 

bitsCN.com
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!