Project

General

Profile

probkem with db:migrate

Added by Sergii Biloshytskyi over 13 years ago

hello i am trying to setup redmine on Windows7, but have problem on rake db:migrate

here is what i have:
c:\redmine-0.9.0>rake db:migrate
(in c:/redmine-0.9.0)
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!
193: %1 is not a valid Win32 application. - c:/Ruby/lib/ruby/gems/1.8/gems/mys
ql-2.8.1-x86-mingw32/lib/1.8/mysql_api.so
(See full trace by running task with --trace)

Also message box appears saying that libmysql.dll cannot be found. (i tried to copy it to my ruby bin folder, but still the same problem)

When i try to install mysql driver i get this:
c:\redmine-0.9.0>gem install mysql
Successfully installed mysql-2.8.1-x86-mingw32
1 gem installed
Installing ri documentation for mysql-2.8.1-x86-mingw32...
No definition for next_result
No definition for field_name
...
No definition for error_errno
no definition for error_sqlstate
Installing RDoc documentation for mysql-2.8.1-x86-mingw32...
No definition for next_result
...
No definition for error_sqlstate

The driver is there, but problem with migrate remains.

can anyone suggest a solution?

Thanks


Replies (2)

RE: probkem with db:migrate - Added by Sergii Biloshytskyi over 13 years ago

ok there are 2 solutions

1st) you scroll down the Installation instruction page http://www.redmine.org/projects/redmine/wiki/RedmineInstall and check out good library binaries for MySQL
it is undeer "Notes on Windows installation"

2nd) Just use PostgreSQL

    (1-2/2)