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

來源:互聯網
上載者:User

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

生產系統中一直部署Mysql5.5.40這個版本,今天因為開發需要,將生產庫的資料dump出來匯入開發搭建的測試環境!

完成測試後,根據開發需求刪除資料臨時資料,

我直接使用刪除資料庫

mysql>drop database test;

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

進入資料庫查看,資料對象已經被刪除了,但是問啥報這個錯誤呢?

懷疑是bug後,在mysql的官網找到了這個Mysql bug根據版本號碼確認,開發資料庫為5.5.20,也不是很符合;

但是bug提供的解決辦法可以參考一下

進入資料庫data目錄,刪除test檔案下的內容,再次執行刪除,會提示資料庫不存在了!


備忘:同樣的操作在5.5.40上沒有報錯,但在開發的5.5.20上報錯了,暫且定義為5.5.20的bug吧

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.