Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/55.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Taps服务器::SQLite3::CantOpenException:无法打开数据库文件_Ruby On Rails_Ruby_Ruby On Rails 3_Taps - Fatal编程技术网

Ruby on rails Taps服务器::SQLite3::CantOpenException:无法打开数据库文件

Ruby on rails Taps服务器::SQLite3::CantOpenException:无法打开数据库文件,ruby-on-rails,ruby,ruby-on-rails-3,taps,Ruby On Rails,Ruby,Ruby On Rails 3,Taps,在heroku db:pull从宝石中移除后,我尝试使用水龙头 taps server mysql2://root@localhost/trappor2 taps taps123 C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.20.0/lib/sequel/adapters/sqlite.rb: 62:in `initialize': SQLite3::CantOpenException: unable to open database file

在heroku db:pull从宝石中移除后,我尝试使用水龙头

 taps server mysql2://root@localhost/trappor2 taps taps123

C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.20.0/lib/sequel/adapters/sqlite.rb:
62:in `initialize': SQLite3::CantOpenException: unable to open database file (Se
quel::DatabaseConnectionError)
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.20.0/lib/sequel/adapte
rs/sqlite.rb:62:in `new'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.20.0/lib/sequel/adapte
rs/sqlite.rb:62:in `connect'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.20.0/lib/sequel/databa
se/misc.rb:45:in `block in initialize'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.20.0/lib/sequel/connec
tion_pool.rb:92:in `call'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.20.0/lib/sequel/connec
tion_pool.rb:92:in `make_new'

是什么导致了这个错误

我最近也遇到了一些问题。如果可以,尝试切换到PG备份--这非常简单: