最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - How to release MySQL's lock on table files - Stack Overflow

programmeradmin4浏览0评论

I found that as long as a connection is established to a certain database and a statement is executed, the database's files are occupied by MySQL. I cannot delete or compress the database file. Besides restarting the MySQL service, is there any other way to release MySQL's lock on the files? I have confirmed that my code correctly handles the closing and disposing of connections and commands.

The language I am using is C#, the library is MySql.Data, and the MySQL version is 5.6.41.

发布评论

评论列表(0)

  1. 暂无评论