2011-03-18 151 views
0

我在本地mashine上使用Mysql。我尝试推送数据库时遇到问题。 我已经安装了水龙头。Heroku错误:没有这样的文件加载 - sqlite3/sqlite3_native

[email protected] /c/rails/konkurranceportalen (master) 
    $ heroku db:push 
    Taps Load Error: no such file to load -- sqlite3/sqlite3_native 
    You may need to install or update the taps gem to use db commands. 
    On most systems this will be: 

    sudo gem install taps 

更新我现在得到以下错误:

Ruby.exe system error 
The program could not be started because sqlite3.dll is missing on the computer. 

我的数据库阳明:

# SQLite version 3.x 
# gem install sqlite3-ruby (not necessary on OS X Leopard) 
# gem 'mysql', '2.8.1' 

development: 
    adapter: mysql 
    database: konkurranceportalen 
    encoding: utf8 
    pool: 5 
    username: root 
    password: 
    socket: C:/xampp/mysql/bin/mysqld.sock 
    host: 127.0.0.1 

# Warning: The database defined as "test" will be erased and 
# re-generated from your development database when you run "rake". 
# Do not set this db to the same as development or production. 

test: 
    adapter: mysql 
    database: rails_t 
    encoding: utf8 
    pool: 5 
    username: root 
    password: 
    socket: C:/xampp/mysql/bin/mysqld.sock 
    host: 127.0.0.1 

production: 
    adapter: mysql 
    database: rails_p 
    encoding: utf8 
    pool: 5 
    username: root 
    password: 
    socket: C:/xampp/mysql/bin/mysqld.sock 
    host: 127.0.0.1 

回答

0

您需要先安装水龙头宝石。它应该在那之后自动工作。

看看你的database.yml文件是否配置正确。

或者只是使用所需的细节

 
$ heroku db:push mysql://root:[email protected]/mydb 

填写上面的命令。

+0

我已经安装了水龙头 – 2011-03-18 16:54:58

+0

你可以发表你的database.yml文件 – 2011-03-18 16:56:41

+0

我已经发布我的数据库阳明 – 2011-03-18 16:59:31

1

简单地增加

gem 'sqlite3' 

到我的'开发'组内的Gemfile为我修复了它。

+0

Hvor arbejder du henne? – 2012-05-10 17:50:15

+0

Hos Magma,我哥本哈根。 – Bastien 2012-05-11 21:23:30

+0

Tænktepåom du ved hvor det er muligt atfåarbejde deltid,som ROR udvikler? :) – 2012-05-15 19:55:00

相关问题