gkunter / coquery

Coquery is a free corpus query tool for linguists, lexicographers, translators, and anybody who wishes to search and analyse a text corpus.
GNU General Public License v3.0
18 stars 4 forks source link

MySQL Metadata lock when re-installing currently selected corpus #199

Closed gkunter closed 7 years ago

gkunter commented 7 years ago

Re-installing (or deleting) the currently selected corpus may fail due to a table metadata lock. This is probably so because the current session maintains a connection to the corpus data base, which prevents MySQL from dropping the data base.

A possible solution might be to always close the session's data base connection when either reinstalling or deleting a corpus, and reopening it afterwards.

gkunter commented 7 years ago

To reproduce: