hardStudy question · answer published in MySQL interview questions, so no pointstransactionsmysqltable-locks
An idle MySQL session blocks ALTER
A tool connects to MySQL with autocommit = 0, runs one SELECT on orders and sits idle. Later ALTER TABLE orders hangs with "Waiting for table metadata lock". Why?
Discussion 0
Join free to post in the discussion.
Related questions
- Durability in ACIDDatabase Administrator
- Why a write-ahead log existsDatabase Administrator
- What ROLLBACK undoesDatabase Administrator
- Why InnoDB over MyISAMDatabase Administrator
- Finding slow MySQL queriesDatabase Administrator
- How InnoDB stores table rowsDatabase Administrator
- What an InnoDB secondary index points toDatabase Administrator
- type = ALL in MySQL EXPLAINDatabase Administrator