About this question
I tried all three methods explained here to max_allowed_packet. But no one changes its value in my MySQL 5.6. I use show variables like '%max_allowed_packet%' to see its current value. But it always is 12582912. Only changing its value in my.ini is effective.
What is wrong?