我有一些复杂的问题涉及到几个不同的程序,包括redmine,MySQL,Ruby,Ruby on Rails等。这是在Windows XP上。Redmine安装问题耙指令问题,MySQL数据库问题?
我在这里按照管理平台的指令:http://www.redmine.org/projects/redmine/wiki/RedmineInstall
我在第5步。在那里,我想打字RAILS_ENV=production rake db:migrate
当我在命令提示符下键入并回车我得到一个错误: “RAILS_ENV”不是一个命令等等等等。
所以我把它重新安排到:rake db:migrate RAILS_ENV=production
这似乎是工作正确的,但我得到以下几点:
C:\redmine-1.2.1>rake db:migrate RAILS_ENV=production --trace
* Invoke db:migrate (first_time)
* Invoke environment (first_time)
* Execute environment
rake aborted!
Access denied for user 'redmine'@'localhost' (using password: YES)
C:/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/connection_adapters
/mysql_adapter.rb:620:in `real_connect'
C:/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/connection_adapters
/mysql_adapter.rb:620:in `connect'
C:/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/connection_adapters
/mysql_adapter.rb:203:in `initialize'
C:/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/connection_adapters
/mysql_adapter.rb:75:in `new'
这是我database.yml
文件内容:
的MySQL(默认建立)。
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password: ****
encoding: utf8
development:
adapter: mysql
database: redmine_development
host: localhost
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
database: redmine_test
host: localhost
username: root
password:
encoding: utf8
test_pgsql:
adapter: postgresql
database: redmine_test
host: localhost
username: postgres
password: "postgres"
test_sqlite3:
adapter: sqlite3
database: db/test.sqlite3
我真的需要一些方向。这几乎就像我的用户/密码有问题。我已更改密码不包含“!”或任何其他特殊字符。我确实有大写和小写字母。
任何帮助将不胜感激。
DemiSheep
'拒绝用户redmine'@'localhost'(使用密码:YES)''。看起来你的生产环境密码错了。如果您尝试在'dev''模式下在'dev''模式下启动它,请尝试将其保留为空,否则请再次检查用户名/密码拼写 – Bohdan