我創建了項目。在開發模式下工作!優秀!僅在生產中出現錯誤!
發展: 打字:ruby lib/scripts/test_sync.rb
而且我的腳本作品!
生產: 打字:ruby lib/scripts/test_sync.rb
獲取Access denied for user 'root'@'localhost' (using password: YES)
不知道,我所做的一切。授予previligies,更改密碼等... Coul某人幫助我,請嗎?
UPD *
# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: mysql
host: localhost
database: survey_development
username: root
password:
encoding: utf8
# 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
host: localhost
database: survey_development
username: root
password:
encoding: utf8
production:
adapter: mysql
host: survey
database: survey_production
username: survey
password:
encoding: utf8
mossad:
adapter: mysql
host: baza
database: baza_production
username: baza_survey
password:
encoding: utf8
也許問題是與你的database.yml文件,嘗試在生產與相同的憑據運行mysql你在你的文件中提到 – usmanali 2011-06-16 09:34:02
我認爲是一樣的,但不能看到任何關鍵:S – 2011-06-16 09:37:57
也許問題是與摩薩德。摩薩德和密碼不能很好地混合在一起。 – 2013-04-11 17:35:07