$ bundle exec rake db:reset command raising couldn't drop db/development.sqlite3

前端 未结 5 562
醉酒成梦
醉酒成梦 2021-02-04 02:32

I tried to run $ bundle exec rake db:reset and found the following on console

Couldn\'t drop db/development.sqlite3 : #

        
5条回答
  •  耶瑟儿~
    2021-02-04 03:12

    I know this is an old post, but I just had this problem (continued sqlite3 issues with Windows), and while rebooting, shutting the command line, and stopping the server didn't work, I did manage to solve it by actually running each of the commands htanta mentioned above sequentially: 1. bundle exec rake db:drop 2. bundle exec rake db:create 3. bundle exec rake db:migrate

    If db:reset is only these commands anyway, I don't understand why it doesn't work but the individual commands do?

提交回复
热议问题