MySQL: Error dropping database (errno 13; errno 17; errno 39)

后端 未结 7 1973
清歌不尽
清歌不尽 2020-12-12 18:53

I failed to drop a database:

mysql> drop database mydb;
ERROR 1010 (HY000): Error dropping database (can\'t rmdir \'./mydb\', errno: 39)

Directory db/m

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-12 19:27

    As for ERRORCODE 39, you can definately just delete the physical table files on the disk. the location depends on your OS distribution and setup. On Debian its typically under /var/lib/mysql/database_name/ So do a:

    rm -f /var/lib/mysql//
    

    And then drop the database from your tool of choice or using the command:

    DROP DATABASE 
    

提交回复
热议问题