zoukankan      html  css  js  c++  java
  • 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数据库中没有该文件的数据字典信息。

    如下所示,

    [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)
  • 相关阅读:
    tcp socket http(复制的)
    cas php
    占用字节
    网络基础
    Mbps MB/S Mb/s
    path_info和get_full_path()的区别
    rbac权限管理
    ORM _meta
    Django SQLite3的使用
    url的分发
  • 原文地址:https://www.cnblogs.com/ivictor/p/5917370.html
Copyright © 2011-2022 走看看