This project is archived and is in readonly mode.
Segmentation fault on 1.8.7 patchlevel 249 on xampp
-
Damien MATHIEU
Could you provide the entire backtrace ?
You'll get it withrake db:migrate --trace -
Calum MacLeod
c:\xampp\htdocs\church>rake db:migrate --trace
(in c:/xampp/htdocs/church) Invoke db:migrate (first_time) Invoke environment (first_time) Execute environment Execute db:migrate rake aborted!
Mysql::Error: query: not connected: CREATE TABLEschema_migrations(version
varchar(255) NOT NULL) ENGINE=InnoDB
C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connec
tion_adapters/abstract_adapter.rb:221:inlog'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connec<br/> tion_adapters/mysql_adapter.rb:323:inexecute'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connec
tion_adapters/abstract/schema_statements.rb:109:increate_table'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connec<br/> tion_adapters/mysql_adapter.rb:477:increate_table'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connec
tion_adapters/abstract/schema_statements.rb:369:ininitialize_schema_migrations<br/> _table'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migrat<br/> ion.rb:441:ininitialize'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migrat
ion.rb:401:innew'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migrat<br/> ion.rb:401:inup'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migrat
ion.rb:383:inmigrate'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/tasks/databases.rake:112<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:incall'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:inexecute'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:ineach'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:inexecute'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:ininvoke_with
call_chain'
C:/xampp/ruby/lib/ruby/1.8/monitor.rb:242:insynchronize'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with
call_chain'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:ininvoke'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:ininvoke_task
' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:ineach'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_ex
ception_handling'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:intop_level'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:inrun'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_ex<br/> ception_handling'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:inrun'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/xampp/ruby/bin/rake:19:inload'<br/> C:/xampp/ruby/bin/rake:19 -
Rohit Arondekar
I don't know if this is still relevant but you could try the solution provided in this blog post -> http://halyph.blogspot.com/2009/08/rails-23-migration-issues-with-m...
If it does work please update this ticket so that it can be closed.
-
Calum MacLeod
I downloaded the older libmySQL.dll and put it in c:\xampp\ruby\bin as advised in the post mentioned by Rohit Arondekar.
Then, I merely issued the "rake db:migrate" command once more and it worked, straight away.
Thanks, Rohit and HalypH !
Calum
This ticket should now be closed.