Skip to content

Instantly share code, notes, and snippets.

@ghazel
Created July 13, 2010 22:46
Show Gist options
  • Save ghazel/474673 to your computer and use it in GitHub Desktop.
Save ghazel/474673 to your computer and use it in GitHub Desktop.
S:\>gem list mysql
*** LOCAL GEMS ***
mysql (2.8.1 x86-mingw32)
S:\>ruby script\runner
** Erubis 2.6.6
** Erubis 2.6.6
SQL (0.0ms) Mysql::Error: Commands out of sync; you can't run this command now: SET NAMES 'utf8'
SQL (0.0ms) Mysql::Error: Commands out of sync; you can't run this command now: SET NAMES 'utf8'
SQL (0.0ms) Mysql::Error: Commands out of sync; you can't run this command now: SET NAMES 'utf8'
SQL (0.0ms) Mysql::Error: Commands out of sync; you can't run this command now: SET NAMES 'utf8'
SQL (0.0ms) Mysql::Error: Commands out of sync; you can't run this command now: SET NAMES 'utf8'
SQL (0.0ms) Mysql::Error: Commands out of sync; you can't run this command now: SET NAMES 'utf8'
SQL (0.0ms) Mysql::Error: Commands out of sync; you can't run this command now: SET NAMES 'utf8'
SQL (0.0ms) Mysql::Error: Commands out of sync; you can't run this command now: SET NAMES 'utf8'
C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract_adapter.rb:221:in `log': Mysql::Error: Commands out of sync; you can't run this command now: SET NAMES 'utf8' (ActiveRecord::StatementInvalid)
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:323:in `execute'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:629:in `configure_connection'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:624:in `connect'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:203:in `initialize'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:75:in `new'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/mysql_adapter.rb:75:in `mysql_connection'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `send'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
from C:/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:3154:in `quoted_table_name'
from S://app/models/user.rb:34
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:380:in `load_without_new_constant_marking'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:380:in `load_file'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:379:in `load_file'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:259:in `require_or_load'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:425:in `load_missing_constant'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in `const_missing_not_from_s3_library'
from C:/Ruby187/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:in `const_missing'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:92:in `const_missing'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/inflector.rb:364:in `constantize'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/inflector.rb:363:in `each'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/inflector.rb:363:in `constantize'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/string/inflections.rb:162:in `constantize'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/observer.rb:157:in `observed_class'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/observer.rb:183:in `observed_classes'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/observer.rb:166:in `initialize'
from C:/Ruby187/lib/ruby/1.8/singleton.rb:94:in `new'
from C:/Ruby187/lib/ruby/1.8/singleton.rb:94:in `instance'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/observer.rb:38:in `instantiate_observers'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/observer.rb:36:in `each'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/observer.rb:36:in `instantiate_observers'
from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:15
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:182:in `call'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:182:in `evaluate_method'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:166:in `call'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:90:in `run'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:90:in `each'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:90:in `send'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:90:in `run'
from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:276:in `run_callbacks'
from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:51:in `send'
from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:51:in `run_prepare_callbacks'
from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:631:in `prepare_dispatcher'
from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:185:in `process'
from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `send'
from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `run'
from S://config/environment.rb:70
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/commands/runner.rb:39
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from script/runner:4
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32: [BUG] Segmentation fault
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment