ERROR: The connection is in autoCommit mode

≡放荡痞女 提交于 2019-12-02 07:21:32

I actually ran into this issue as a result of including the wrong header files in my project's Makefile.

In my Makefile, I was including headers for a Solaris release of MySQL, but was compiling on Linux. After pointing the includes to the correct MySQL release headers, I didn't get this error anymore.

"The connection is in autoCommit mode" so you can't start a transaction.

So find the method to set autoCommit to false.

autoCommit mode is the default mode for mySql at it means that each statement is its own transaction.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!