Error Dropping Database (Can't rmdir '.test\', errno: 17)

后端 未结 17 2353
误落风尘
误落风尘 2020-11-28 22:09

Basically, I was taught on how to create a root password using the \"mysqladmin -u root -p password\" command, this was done all through the windows command editor. Now, the

17条回答
  •  孤街浪徒
    2020-11-28 22:32

    I had the same issue (mysql 5.6 on mac) with 'can't rmdir..'-errors when dropping databases. Leaving an empty database directory not possible to get rid of. Thanks @Framework and @Beel for the solutions.

    I first deleted the db directory from the Terminal in (/Applications/XAMPP/xamppfiles/var/mysql).

    For further db drops, I also deleted the empty test file. In my case the file was called NOTEMPTY but still containing 0:

    sudo ls -al test
    total 0
    drwxrwx---   3 _mysql  _mysql  102 Mar 26 16:50 .
    drwxrwxr-x  18 _mysql  _mysql  612 Apr  7 13:34 ..
    -rw-rw----   1 _mysql  _mysql    0 Jun 26  2013 NOTEMPTY
    

    Chmod first and then

    sudo rm -rf test/NOTEMPTY
    

    No problems dropping databases after that

提交回复
热议问题