I’m developing a java application which will run on LAN, i do test today i faced one problem, when insert a new data, other client couldn’t see the records even after COMMIT.
I’m using transactions,MySQL INNODB engine, so what i have did is to set the autoCommit Mode to true when ending transactions, then it work.
But why commit didn’t revert autoCommit mode to its original state? that strange since tutorial said that when rollback or commit the autoCommitMode will set to true automatically.
any ideas?
Once connection is established all autocommit mode changes are ALWAYS made explicitly.
Committing/Rolling back transaction doesn’t affect autocommit flag.
If other client sees records after reconnecting it means there is problem at his side.