How do I turn off autocommit for a MySQL client?

后端 未结 7 664
灰色年华
灰色年华 2020-12-13 06:36

I have a web app that has been written with the assumption that autocommit is turned on on the database, so I don\'t want to make any changes there. However all the document

7条回答
  •  醉梦人生
    2020-12-13 07:07

    For auto commit off then use the below command for sure. Set below in my.cnf file:

        [mysqld]
        autocommit=0
    

提交回复
热议问题