I have been following john leonard''s instructions for the installation
of tracks on Windows XP and have copied in the file mysql.rb to avoid
Ruby errors when communicating with mysql. The problem now is I get the
following error and cannot find any information on how to resolve it.
Any help would be gratefully received.
Error:
Errno::ECONNREFUSED in Login#signup
No connection could be made because the target machine actively refused
it. - connect(2)
RAILS_ROOT: ./script/../config/../
Application Trace | Framework Trace | Full Trace
c:/ruby/lib/ruby/1.8/mysql.rb:103:in `initialize’
c:/ruby/lib/ruby/1.8/mysql.rb:103:in `new’
c:/ruby/lib/ruby/1.8/mysql.rb:103:in `real_connect’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/connection_adapters/mysql_adapter.rb:42:in
`mysql_connection’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in
`send’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in
`connection_without_query_cache=’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/query_cache.rb:54:in
`connection=’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:83:in
`retrieve_connection’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/base.rb:253:in
`connection’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/base.rb:741:in
`columns’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/base.rb:1650:in
`attributes_from_column_definition’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/base.rb:1190:in
`initialize_without_callbacks’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/callbacks.rb:236:in
`initialize’
W:/www/tracks-1.03/app/controllers/login_controller.rb:30:in `new’
W:/www/tracks-1.03/app/controllers/login_controller.rb:30:in `signup’
c:/ruby/lib/ruby/1.8/mysql.rb:103:in `initialize’
c:/ruby/lib/ruby/1.8/mysql.rb:103:in `new’
c:/ruby/lib/ruby/1.8/mysql.rb:103:in `real_connect’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/connection_adapters/mysql_adapter.rb:42:in
`mysql_connection’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in
`send’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in
`connection_without_query_cache=’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/query_cache.rb:54:in
`connection=’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:83:in
`retrieve_connection’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/base.rb:253:in
`connection’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/base.rb:741:in
`columns’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/base.rb:1650:in
`attributes_from_column_definition’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/base.rb:1190:in
`initialize_without_callbacks’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/callbacks.rb:236:in
`initialize’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/base.rb:841:in
`send’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/base.rb:841:in
`perform_action_without_filters’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/filters.rb:332:in
`perform_action_without_benchmark’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/benchmarking.rb:69:in
`measure’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/rescue.rb:82:in
`perform_action’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/base.rb:365:in
`send’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/base.rb:365:in
`process_without_session_management_support’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/session_management.rb:116:in
`process’
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/dispatcher.rb:38:in
`dispatch’
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/webrick_server.rb:117:in
`handle_dispatch’
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/webrick_server.rb:83:in
`service’
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service’
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run’
c:/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread’
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start’
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread’
c:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start’
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each’
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start’
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start’
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start’
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/webrick_server.rb:69:in
`dispatch’
script/server:51
c:/ruby/lib/ruby/1.8/mysql.rb:103:in `initialize’
c:/ruby/lib/ruby/1.8/mysql.rb:103:in `new’
c:/ruby/lib/ruby/1.8/mysql.rb:103:in `real_connect’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/connection_adapters/mysql_adapter.rb:42:in
`mysql_connection’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in
`send’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in
`connection_without_query_cache=’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/query_cache.rb:54:in
`connection=’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:83:in
`retrieve_connection’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/base.rb:253:in
`connection’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/base.rb:741:in
`columns’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/base.rb:1650:in
`attributes_from_column_definition’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/base.rb:1190:in
`initialize_without_callbacks’
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.0/lib/active_record/callbacks.rb:236:in
`initialize’
W:/www/tracks-1.03/app/controllers/login_controller.rb:30:in `new’
W:/www/tracks-1.03/app/controllers/login_controller.rb:30:in `signup’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/base.rb:841:in
`send’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/base.rb:841:in
`perform_action_without_filters’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/filters.rb:332:in
`perform_action_without_benchmark’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/benchmarking.rb:69:in
`measure’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/rescue.rb:82:in
`perform_action’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/base.rb:365:in
`send’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/base.rb:365:in
`process_without_session_management_support’
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller/session_management.rb:116:in
`process’
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/dispatcher.rb:38:in
`dispatch’
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/webrick_server.rb:117:in
`handle_dispatch’
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/webrick_server.rb:83:in
`service’
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service’
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run’
c:/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread’
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start’
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread’
c:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start’
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each’
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start’
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start’
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start’
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.3/lib/webrick_server.rb:69:in
`dispatch’
script/server:51
Request
Parameters: None
Show session dump
—
flash: !ruby/hash:ActionController::Flash::FlashHash {}
Response
Headers: {”cookie”=>[], “Cache-Control”=>”no-cache”}
--
Posted via http://www.ruby-forum.com/.