rails/rails — Issue #4258: MySQL "Waiting for table metadata lock" on db:drop
Author: masterkain
Created: 2012-01-02 11:56:03+00:00
State: open

Using Rails master when I execute a `rake db:drop` MySQL (and the rake task) hangs indefinitely with the message 'Waiting for table metadata lock" on the connection command.

![Alt text](https://img.skitch.com/20120102-c94t81fs2u2kysy46dfeaqbk41.png)

I was reading up this error on mysql bug tracker but all the tickets got closed because it was the developer's fault. I think something similar is happening.

http://bugs.mysql.com/bug.php?id=60563
http://bugs.mysql.com/bug.php?id=61935