2011-03-18 163 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

相關問題