日期:2014-05-16  浏览次数:20737 次

如何让autocommit=0在服务启动后即生效?
如题

------解决方案--------------------
在my.cnf的[mysqld]部分里,加上:
init_connect= 'SET AUTOCOMMIT=0 '