SET @save_innodb_timeout=@@innodb_lock_wait_timeout; SET GLOBAL innodb_lock_wait_timeout=1; set session transaction isolation level read committed;
create table innodb_bug52663 (what varchar(5), id integer, count integer, primary key
(what, id)) engine=innodb;
insert into innodb_bug52663 values ('total', 0, 0);
begin;
connect addconroot, localhost, root,,; set session transaction isolation level read committed;
begin;
connection default;
update innodb_bug52663 set count = count + 1 where what = 'total'and id = 0;
select * from innodb_bug52663;
what id count
total 01
connection addconroot;
update innodb_bug52663 set count = count + 1 where what = 'total'and id = 0; ERROR HY000: Lock wait timeout exceeded; try restarting transaction
select * from innodb_bug52663;
what id count
total 00
connection default;
commit;
connection addconroot;
update innodb_bug52663 set count = count + 1 where what = 'total'and id = 0;
commit;
select * from innodb_bug52663;
what id count
total 02
connection default;
select * from innodb_bug52663;
what id count
total 02
drop table innodb_bug52663; SET GLOBAL innodb_lock_wait_timeout=@save_innodb_timeout;
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-10-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.