码迷,mamicode.com
首页 > 数据库 > 详细

ERROR 1010 (HY000): Error dropping database (can't rmdir './test/', errno: 17)

时间:2016-10-06 22:03:37      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:

在删除数据库的时候报标题所示错误

mysql> drop database test;
ERROR 1010 (HY000): Error dropping database (can‘t rmdir ‘./test/‘, errno: 17)

 

问题原因:

test目录下存在着MySQL数据库不知道的文件,即MySQL数据库中没有该文件的数据字典信息。

如下所示,

[root@localhost data]# cd /usr/local/mysql-advanced-5.6.23-linux-glibc2.5-x86_64/data/test
[root@localhost test]# ls
123

 

解决方法:

手动删除test目录下的该文件

# rm -rf 123

登录数据库,重新执行drop database操作

mysql> drop database test;
Query OK, 0 rows affected (0.01 sec)

ERROR 1010 (HY000): Error dropping database (can't rmdir './test/', errno: 17)

标签:

原文地址:http://www.cnblogs.com/huolarry/p/5934705.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!