MariaDB社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索

autocommit设置问题

查看数: 4569 | 评论数: 2 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2010-9-14 11:34

正文摘要:

如何设置autocommit的值为off  在那设置 让它启动mysql服务器默认值就是off 谢谢!!!

回复

leal402 发表于 2010-9-21 17:42:58
autocommit是会话级别的,在特定事物前显式设置。
set autocommit=0/1/ON/OFF;
kider 发表于 2010-9-15 09:51:29
回复 xiehuiandhua 的帖子

从官方Server System Variables发布的变量来看:
autocommit不是可以在配置文件里配置。默认是1,自动提交。
属于Session级别,可在需要是控制。

NameCmd-LineOption fileSystem VarVar ScopeDynamic
auto_increment_incrementYesYesYesBothYes
auto_increment_offsetYesYesYesBothYes
autocommit YesSessionYes

QQ|Archiver|小黑屋|手机版|MariaDB社区 ( 京ICP备07012489号    |
业务联系: QQ:48474881; 邮箱: 48474881@qq.com; 电话:13911732319
声明:本站部分文章是网友转载,若未经作者同意或署名有误,请联系网站管理员。

GMT+8, 2024-9-20 05:56 , Processed in 0.071387 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表