I tried to connect from local to the mysql attached to compute Engine. I simply use jdbc driver in java to connect with that. And the error says
com.mysql.cj.jdbc.exceptions.PacketTooBigException: Packet for query is too large (4,739,923 > 65,535). You can change this value on the server by setting the 'max_allowed_packet' variable.
Therefore, I tried to login in phpmyadmin to set up the max allowed packet in mysql, but it doesn't work.
It seems that the setting should be in the computer engine or so. I'm quite new to Google Cloud Platform and can't find any place to set it up.
I also tried gcloud command line but can't find anything as well.
Can anyone give some detailed direction? very appreciated.