可以先使用:show variables like '%commit%'查出自动提交事务的变量autocommit如下图:

 

 

再使用:set autocommit = off;设置即可,也可以写0,因为都是Boolean值,如下图:

posted on 2019-12-25 23:12  大景少  阅读(724)  评论(0编辑  收藏  举报