Bug #2694
closedrake db:migrate -> error query not connected
Description
=begin
D:\bernard\rails\redmine-0.9.1>rake db:migrate RAILS_ENV=production --trace
(in D:/bernard/rails/redmine-0.9.1)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
Mysql::Error: query: not connected: CREATE TABLE schema_migrations
(version
varchar(255) NOT NULL) ENGINE=InnoDB
D:/bernard/rails/redmine-0.9.1/vendor/rails/activerecord/lib/active_record/conne
ction_adapters/abstract_adapter.rb:219:in rescue in log' D:/bernard/rails/redmine-0.9.1/vendor/rails/activerecord/lib/active_record/conne ction_adapters/abstract_adapter.rb:202:in
log'
D:/bernard/rails/redmine-0.9.1/vendor/rails/activerecord/lib/active_record/conne
ction_adapters/mysql_adapter.rb:323:in execute' D:/bernard/rails/redmine-0.9.1/vendor/rails/activerecord/lib/active_record/conne ction_adapters/abstract/schema_statements.rb:114:in
create_table'
D:/bernard/rails/redmine-0.9.1/vendor/rails/activerecord/lib/active_record/conne
ction_adapters/mysql_adapter.rb:476:in create_table' D:/bernard/rails/redmine-0.9.1/vendor/rails/activerecord/lib/active_record/conne ction_adapters/abstract/schema_statements.rb:320:in
initialize_schema_migration
s_table'
D:/bernard/rails/redmine-0.9.1/vendor/rails/activerecord/lib/active_record/migra
tion.rb:436:in initialize' D:/bernard/rails/redmine-0.9.1/vendor/rails/activerecord/lib/active_record/migra tion.rb:400:in
new'
D:/bernard/rails/redmine-0.9.1/vendor/rails/activerecord/lib/active_record/migra
tion.rb:400:in up' D:/bernard/rails/redmine-0.9.1/vendor/rails/activerecord/lib/active_record/migra tion.rb:383:in
migrate'
D:/bernard/rails/redmine-0.9.1/vendor/rails/railties/lib/tasks/databases.rake:11
6:in block (2 levels) in <top (required)>' d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:636:in
call'
d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:636:in block in execu te' d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:631:in
each'
d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:631:in execute' d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:597:in
block in invok
e_with_call_chain'
d:/ruby19/lib/ruby/1.9.1/monitor.rb:190:in mon_synchronize' d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_ca
ll_chain'
d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:583:in invoke' d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2051:in
invoke_task'
d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:in block (2 leve ls) in top_level' d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:in
each'
d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:in block in top_ level' d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exce
ption_handling'
d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2023:in top_level' d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2001:in
block in run'
d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exce ption_handling' d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1998:in
run'
d:/ruby19/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake:31:in <top (required)>' d:/ruby19/bin/rake:19:in
load'
d:/ruby19/bin/rake:19:in `'
-- control frame ----------
c:0001 p:0000 s:0002 b:0002 l:0010f4 d:0010f4 TOP
-- Ruby level backtrace information-----------------------------------------
[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
D:\bernard\rails\redmine-0.9.1>ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]
D:\bernard\rails\redmine-0.9.1>gem list
*** LOCAL GEMS ***
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
mysql (2.8.1)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
D:\bernard\rails\redmine-0.9.1>
Mysql Version 5.1.37
=end