MySQL Forums
Forum List  »  MyISAM

Re: Waiting for table metadata lock
Posted by: Jon Ribbens
Date: January 08, 2013 05:15AM

It turns out that the problem was due to surprising 'feature' changes of two different packages.

Firstly, in 5.5, MySQL has changed so that, even though MyISAM tables do not support transactions, if you use any DDL statements (even just "DESCRIBE"), they get locked by transactions anyway.

Secondly, mysql-python secretly and non-optionally issues a "SET AUTOCOMMIT=0" instruction when it connects to the MySQL server.

It's not very nice, but I've managed to work-around the problem by hacking the mysql-python module to turn autocommit back on again.

Thanks for your suggestions.

Options: ReplyQuote


Subject
Views
Written By
Posted
9292
January 06, 2013 10:24AM
5206
January 07, 2013 11:03PM
Re: Waiting for table metadata lock
4698
January 08, 2013 05:15AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.