I read here that max allowed json in 1 GB.
Can we somehow change this default behaviour to reduce this MAX limit to few MBs or any other value in particular table column with json datatype?
I read here that max allowed json in 1 GB.
Can we somehow change this default behaviour to reduce this MAX limit to few MBs or any other value in particular table column with json datatype?
As explained in Max JSON column length in MySQL, the maximum length of a JSON field is controlled by the max_paquet_size
system variable.
As explained in the documentation https://dev.mysql.com/doc/refman/5.5/en/packet-too-large.html, you can change this by adding
[mysqld]
max_allowed_packet=<xx>
in your my.ini
or ~/.my.cnf
file. Don't forget to restart the service !