June 19, 2013

Post: InnoDB's gap locks

… t VALUES(26); ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction transaction2 > INSERT INTO t VALUES(29); ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction transaction2 > INSERT INTO t VALUES(23); ERROR 1205 (HY000): Lock wait…/doc/refman/5.1/en/innodb-locks-set.html. Conclusion MySQL uses REPEATABLE READ as the default isolation level so it…

Comment: InnoDB's gap locks

…); ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction root@localhost:test 14:38:03>insert into t values(23); ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction root@localhost:test 14:44:37>insert into t values(31); ERROR 1205 (HY000… lock struct(s), heap size 1216, 1 row lock(s) MySQL thread id 31929, query id 484616 localhost root update insert…

Post: Pitfalls of converting to InnoDB

… plain, however the application can be broken by new unexpected errors 1205 (ER_LOCK_WAIT_TIMEOUT) Lock wait timeout expired. Transaction was… you DBNAME=”dbname” DBUSER=”user” DBPWD=”password” for t in $(mysql -u$DBUSER -p$DBPWD –batch –column-names=false -e “show…” $DBNAME; done There is the standard script mysql_convert_table_format in the MySQL distribution, but it requires Perl and DBI package…

Post: Test Drive of Solid

…test2 values (1,’Mysql‘),(2,’Solid’),(3,’MyISAM’); mysql> begin; mysql> update test2 set names=’mysql‘ where id=1; Session 2: mysql> begin; mysql> update …deadlock here – but not – just waiting… In 30 sec Session1: ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction So as…

Comment: InnoDB's gap locks

… insert is failing mysql> START TRANSACTION; Query OK, 0 rows affected (0.00 sec) mysql> INSERT INTO t VALUES(26); ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction mysql> show variables like “%isol…

Comment: Pitfalls of converting to InnoDB

… I’ve found. I’m using PHP 5.1.6, MySQL 5.0.24a default installs from Ubuntu 6.10, so… seconds to time-out with a “1205 – Lock wait timeout exceeded; try restarting transaction”. The 1205 error won’t go away until I… notice your code above has a loop on the 1205 (and 1213) error. In my case, each attempt take 50 seconds to…