I have large size array which I want to save directly in mysql database . Before saving, I encode the array using json_encode , but whenever I try to save the data, Error arise.
CDbCommand failed to execute the SQL statement: SQLSTATE[08S01]: Communication link failure: 1153 Got a packet bigger than 'max_allowed_packet' bytes.
I increase the max_allowed_packet value in /etc/my.cnf and restart MySQL service also but that doesnt work out !!