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

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

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

问题原因:

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

如下所示,

[[email protected] data]# cd /usr/local/mysql-advanced-5.6.23-linux-glibc2.5-x86_64/data/test
[[email protected] 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)

时间: 2024-12-28 13:37:15

ERROR 1010 (HY000): Error dropping database (can't rmdir './test/', errno: 17)的相关文章

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

在删除数据库的时候报标题所示错误 mysql> drop database zabbix; ERROR 1010 (HY000): Error dropping database (can't rmdir './zabbix/', errno: 17) 问题原因: zabbix目录下存在着MySQL数据库没有权限删除或不知道的文件,即MySQL数据库中没有该文件的数据字典信息. 如下所示, [[email protected] data]# cd /mysql/data/zabbix [[ema

ERROR 1010 (HY000): Error dropping database 解决方案

报错: mysql> drop database test;ERROR 1010 (HY000): Error dropping database (can't rmdir './test/', errno: 17) 解决方法: mysql> select @@datadir;+-----------------+| @@datadir |+-----------------+| /var/lib/mysql/ |+-----------------+1 row in set (0.00 se

ERROR 1010 (HY000): Error dropping database (can't rmdir '.\qpweb', errno: 41) 删库失败问题的解决

Win8 下,MySQL5.5,root 用户登录 MySQL 5.5 Command Line Client,删除 qpweb 数据,执行命令 drop database qpweb;报错信息:ERROR 1010 (HY000): Error dropping database (can't rmdir '.\qpweb', errno: 41)解决方法如下:1. 先在 MySQL CMD 窗口找到库目录: 2. 再在系统 CMD 切换到库目录: 3. 最后将该库目录 qpweb 删除即可:

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

删除数据库时,报标题所提示的错误: mysql> drop database zabbix;ERROR 1010 (HY000): Error dropping database (can't rmdir './zabbix', errno: 39) 问题的原因: zabbix目录下存在着mysql数据库不知道的文件,即mysql数据库中没有该文件的数据字典信息. 解决办法:手动将该目录下的残留的文件删除, #rm  -f  /usr/local/mysql/data/zabbix/users.

ERROR 6 (HY000): ERROR ON DELETE OF ‘./DATABASE//DB.OPT’ (ERRCODE: 13)

I was trying to drop a database in MySQL today but every time I did I got the error: ERROR 6 (HY000): Error on delete of './database//db.opt' (Errcode: 13) This was due to the fact permissions on the database folder were not allowing MySQL to delete

[mysql]ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value

From: http://m.blog.csdn.net/blog/langkeziju/13511411 我的MySQL版本为5.6.14版本,是二进制包安装的(虽然是二进制包安装的,但是以下问题同样适用于源码安装包安装的MySQL) 今天在我的测试库上添加一个新用户,报错: [[email protected] ~]$ mysql -uroot -p123456 Warning: Using a password on the command line interface can be in

(转)ERROR 2002 (HY000): Can't connect to local MySQL server through socket '***' (2)

有时候,当我们使用"mysql"."mysqladmin"."mysqldump"等命令管理数据库时,服务器抛出类似如下错误: 1 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) 这个错误是由于什么原因导致的呢? 一.错误现场还原: 下面我们通过三种方式来连接,然后观察提示的错误信息: 1.

ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction

问题描述: 研发突然找我,遇到了mysql的 ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction,具体报错如下: org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158) Caused by: java.io .IOException: java.sql.SQLException: Lock wait timeout exceeded;

mysql start error ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysql.sock’ (2)

When I type mysql, it shows “ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysql.sock’ (2)”. Then I try to start mysql service: $ service mysql start But then I get error “ No directory, logging in with HOME=