Drop database return “Error dropping database errno: 66” in MySQL

前端 未结 3 586
没有蜡笔的小新
没有蜡笔的小新 2020-12-24 01:09

Consider:

DROP DATABASE db_name;
ERROR 1010 (HY000): Error dropping database (can\'t rmdir \'./db_name\', errno: 66)

The problem is that I

相关标签:
3条回答
  • 2020-12-24 01:26

    FYI for mac users with normal mysql server:

    /usr/local/mysql/bin/mysql -u root -pPASSWORD  -e "select @@datadir"
    
    0 讨论(0)
  • 2020-12-24 01:30
    mysql> drop database DB_NAME; 
    ERROR 1010 (HY000): Error dropping database 
    (can't rmdir './DB_NAME', errno: 66)
    
    1. Find the database directory: mysql -e "select @@datadir" -> /usr/local/mysql/data/

    2. Go to the DataBase folder: cd /usr/local/mysql/data/

    3. Delete DB folder of the DB with the issue (in this case: sudo rm -rf DB_NAME)

    0 讨论(0)
  • 2020-12-24 01:47

    If you are using XAMPP in OSX the data directory would be at

    /Applications/XAMPP/xamppfiles/var/mysql
    
    0 讨论(0)
提交回复
热议问题