tried implementing a json query in a legacy PHP project:
SELECT JSON_ARRAYAGG(JSON_OBJECT(
'id', x.id,
'on_date', x.from_date,
'off_date', x.to_date,
'vessel', x.vessel_name,
'vessel_type', x.name
))
from service_list x where 1=1
and discovered that it's not working for unknown reasons. Mysql log clearly says "[Note] Aborted connection 28 to db: 'aaa' user: 'bbb' host: 'localhost' (Got an error writing communication packets)"
This is JSON_ARRAYAGG/JSON_OBJECT related issue, any queries work OK until I add JSON functions to query.
Working with MySQL directly also works, problem takes place only working with PHP.
I'm using the mysqli. I've already tried increasing the max_allowed_packet property in my.ini without any success. Please help.