It was server parameter init_connect setting the autocommit to 0... I wonder who set that -_-; Removing that fixed the problem
@@global.autocommit=1 @@session.autocommit becomes 0 Why?
Shintaro Sasaki
96
Reputation points
Dear Azure support.
We have an Azure database for MySQL instance that is running MySQL engine version 5.7. It has the @@global rajesh .autocommit set to 1. When a fresh connection (with no connection parameter nor initSQL) is established, @@session.autocommit becomes 0. Could you tell me what the possible cause and how to make sure @@session.autocommit of the fresh connection respects the @@global rajesh .autocommit value of 1? without argumenting the connection string or setting InitSQL?
Thank you