Redmine 1.2.1 - Installation Issues : rake aborted! undefined method `more_results' for #<Mysql>
Added by Ratnavel NS over 13 years ago
HI,
I am getting the following error when i run the following command for Redmine 1.2.1
Error:
- Invoke db:migrate (first_time)
- Invoke environment (first_time)
- Execute environment
- Execute db:migrate
rake aborted!
undefined method `more_results' for #<Mysql>
Command:
rake db:migrate RAILS_ENV="production" --trace
Installations:
The gems installed are
gem list
- LOCAL GEMS ***
actionmailer (2.3.11, 2.3.5)
actionpack (2.3.11, 2.3.5)
activerecord (2.3.11, 2.3.5)
activeresource (2.3.11, 2.3.5)
activesupport (2.3.11, 2.3.5)
i18n (0.4.2)
mysql (2.8.1)
rack (1.1.1, 1.0.1)
rails (2.3.11, 2.3.5)
rake (0.8.7)
rmagick (1.15.13)
rubygems-update (1.5.0)
Ruby Version
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-linux]
Ruby Devel Version
ruby-devel - 1.8.6.110-2.fc8.i386
Tried:
Downgrading ruby to ruby 1.8.6 and ruby 1.8.5
without any success.
Kindly help on the same
Replies (4)
RE: Redmine 1.2.1 - Installation Issues : rake aborted! undefined method `more_results' for #<Mysql> - Added by Alex A over 13 years ago
can u show full trace log?
RE: Redmine 1.2.1 - Installation Issues : rake aborted! undefined method `more_results' for #<Mysql> - Added by Ratnavel NS over 13 years ago
rake db:migrate RAILS_ENV=production --trace
(in /redmine/redmine-1.2.1)- Invoke db:migrate (first_time)
- Invoke environment (first_time)
- Execute environment
- Execute db:migrate
rake aborted!
undefined method `more_results' for #<Mysql>
/redmine/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:318:in `select_rows'
/redmine/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:27:in `select_values'
/redmine/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/migration.rb:421:in `get_all_versions'
/redmine/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/migration.rb:537:in `migrated'
/redmine/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/migration.rb:446:in `current_version'
/redmine/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/migration.rb:463:in `migrate'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `detect'
/redmine/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/migration.rb:463:in `each'
/redmine/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/migration.rb:463:in `detect'
/redmine/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/migration.rb:463:in `migrate'
/redmine/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/migration.rb:401:in `up'
/redmine/redmine-1.2.1/vendor/rails/activerecord/lib/active_record/migration.rb:383:in `migrate'
/redmine/redmine-1.2.1/vendor/rails/railties/lib/tasks/databases.rake:112
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
RE: Redmine 1.2.1 - Installation Issues : rake aborted! undefined method `more_results' for #<Mysql> - Added by Luca Meoni over 13 years ago
Hi,
This is a work around. Comment the line 318 and 642 of mysql_adapter.rb, the lines are:
@connection.more_results && @connection.next_result # invoking stored procedures with CLIENT_MULTI_RESULTS requires this to tidy up else connection will be dropped
For me it works.
Bye
RE: Redmine 1.2.1 - Installation Issues : rake aborted! undefined method `more_results' for #<Mysql> - Added by Ratnavel NS over 13 years ago
Thanks a lot Luca !!!
It just worked fine for me too.