I have such a json structure in the payload field
{ "opened": "none", "shopId": "158" } The task is to calculate how many errors in each store according to the log table. I make such a request:
"SELECT count(*) as count, JSON_VALUE(payload, '$.shopId') as shopId FROM warning_logs group by JSON_VALUE(payload, '$.shopId')" I get the error:
Unhandled exception: SQL error: HY000 1548 Cannot load from mysql.proc. The table is probably corrupted. SQL: SELECT count(*) as count, JSON_VALUE(payload, '$.shopId') as shopId FROM `warning_logs` where module = 'Shop' group by JSON_VALUE(payload, '$.shopId')
advise how to get out of the situation