(转)MYSQL 表的类型必须是INNODB才支持事务

在Mysql中,只有当表的类型是INNODB的时候,才支持事务,所以需要把表的类型设置为INNODB,否则无法观察到事务.

修改表的类型为INNODB的SQL:
alter table product_ ENGINE = innodb;


查看表的类型的SQL
show table status from test;


不过有个前提,就是当前的MYSQL服务器本身要支持INNODB,如果不支持,请看 

开启MYSQL INNODB的办法    http://how2j.cn/k/mysql/mysql-innodb/1064.html


来源于:http://how2j.cn/k/hibernate/hibernate-transaction/43.html#nowhere

猜你喜欢

转载自blog.csdn.net/weixin_41888813/article/details/80922642