”进入轮廓”语句未完成而终止锁定文件
我正在使用 mysql 数据库的“INTO OUTFILE”语句创建 csv。该数据库有 40 万条记录。我正在使用 eclipse 中的 java 程序连接到 mysql 数据库并给出此 OUTFILE 查询。有时从程序运行查询后我不想等待整个查询完成。所以我从 eclipse 终止 java 程序。但是当我这样做时,我发现 csv 文件被锁定。我无法复制或删除它。我正在使用Windows 7。我关闭了 Eclipse 应用程序,发现 csv 文件在某种意义上仍然被锁定,即使作为管理员我也无法删除它。如何解锁 csv 文件而无需重新启动计算机。
i am creating a csv by using "INTO OUTFILE" statement for a mysql database. the database is huge 0.4 million records. i am using java program from eclipse to connect to mysql database and give this OUTFILE query. sometimes after running the query from program i do not want to wait for the whole query completion.so i terminate the java program from eclipse. but when i do this i find that the csv file is locked. i cant copy or delete it . i am using windows 7 . i close the eclipse application and find the csv file is still locked in the sense even as administrator i cant delete it. how can i unlock the csv file without having to restart the computer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 unlocker 来确定哪个应用程序仍然持有该文件的锁定并删除该锁定。
You could use unlocker to determine which application still holds a lock on the file and to remove that lock.