1

在尝试在 Windows Server 2008 R2 上安装 Redmine 时,我遇到了以下错误,我们没有找到解决方案...

它要求安装某些东西,并且在尝试安装时说找不到。它建议使用activerecord-mysql2-adapter,但即使这样也不起作用......

我现在开始相信ROR很烂......

C:\Ruby\Apps\Redmine>rake db:migrate
rake aborted!
Please install the mysql adapter: `gem install activerecord-mysql-adapter` (193:
 %1 is not a valid Win32 application.   - C:/Ruby187/lib/ruby/gems/1.8/gems/mysq
l-2.8.1-x86-mingw32/lib/1.8/mysql_api.so)

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

C:\Ruby\Apps\Redmine>gem install activerecord-mysql-adapter
ERROR:  Could not find a valid gem 'activerecord-mysql-adapter' (>= 0) in any re
pository
ERROR:  Possible alternatives: activerecord-mysql2-adapter, activerecord-jdbcmys
ql-adapter, activerecord-jdbc-adapter, activerecord-ruby_mysql-adapter, activere
cord-fb-adapter
4

2 回答 2

1

取决于adapterdatabase.yml尝试的行gem install mysqlgem install mysql2.

于 2012-10-08T06:00:11.463 回答
0

您的数据库连接可能出错,请验证您的 mysql 是否正在运行,如果正在运行,请验证您在 database.yml 中的 sql 连接设置

我也遇到过这个问题,但是更改 database.yml 连接对我有用

于 2013-01-16T11:27:54.840 回答