transactions - Rollback not working in MySQL 5.0.96 -
rollback not working in mysql
the user table engine innodb.
this have.
mysql> show variables 'have_innodb'; +---------------+-------+ | variable_name | value | +---------------+-------+ | have_innodb | yes | +---------------+-------+ mysql> show variables "%version%"; +-------------------------+------------------------------+ | variable_name | value | +-------------------------+------------------------------+ | protocol_version | 10 | | version | 5.0.96-log | | version_comment | mysql community server (gpl) | | version_compile_machine | x86_64 | | version_compile_os | unknown-linux-gnu | +-------------------------+------------------------------+ create table `k_customer` ( `id` int(11) not null auto_increment, .. `updated` timestamp null default current_timestamp on update current_timestamp, primary key (`id`), unique key `index_id` (`id`) ) engine=innodb auto_increment=93 default charset=utf8;
this try test:
start transaction; insert `k_customer` values ('91', .. , '2013-04-21 21:48:46'); rollback;
and inserts record...
i tried
alter table `k_customer` engine = innodb;
but not help.
there no such problem on local db
mysql> show variables "%version%"; +-------------------------+------------------------------+ | variable_name | value | +-------------------------+------------------------------+ | innodb_version | 1.1.8 | | protocol_version | 10 | | slave_type_conversions | | | version | 5.5.24-log | | version_comment | mysql community server (gpl) | | version_compile_machine | x86 | | version_compile_os | win64 | +-------------------------+------------------------------+
i know there heaps of questions this. read many of them , post here data might relevant issue because misuse of may cause exact problem have. other answered question not me.
Comments
Post a Comment