Newbie - not very technical - please help


#1

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:innewâ??
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:inmysql_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:inconnection_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:inretrieve_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:incolumnsâ??
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:ininitialize_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:innewâ??
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:innewâ??
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:inmysql_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:inconnection_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:inretrieve_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:incolumnsâ??
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:ininitialize_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:insendâ??
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:inperform_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:inmeasureâ??
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:inperform_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:inprocess_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:indispatchâ??
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:inserviceâ??
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in serviceâ?? c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:inrunâ??
c:/ruby/lib/ruby/1.8/webrick/server.rb:155:in start_threadâ?? c:/ruby/lib/ruby/1.8/webrick/server.rb:144:instartâ??
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in start_threadâ?? c:/ruby/lib/ruby/1.8/webrick/server.rb:94:instartâ??
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in eachâ?? c:/ruby/lib/ruby/1.8/webrick/server.rb:89:instartâ??
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in startâ?? c:/ruby/lib/ruby/1.8/webrick/server.rb:79:instartâ??
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:innewâ??
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:inmysql_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:inconnection_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:inretrieve_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:incolumnsâ??
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:ininitialize_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:innewâ??
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:insendâ??
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:inperform_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:inmeasureâ??
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:inperform_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:inprocess_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:indispatchâ??
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:inserviceâ??
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in serviceâ?? c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:inrunâ??
c:/ruby/lib/ruby/1.8/webrick/server.rb:155:in start_threadâ?? c:/ruby/lib/ruby/1.8/webrick/server.rb:144:instartâ??
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in start_threadâ?? c:/ruby/lib/ruby/1.8/webrick/server.rb:94:instartâ??
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in eachâ?? c:/ruby/lib/ruby/1.8/webrick/server.rb:89:instartâ??
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in startâ?? c:/ruby/lib/ruby/1.8/webrick/server.rb:79:instartâ??
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â?}


#2

You need to make sure the mysql server is running and the port is open
on the machine you’re connecting to.

That’s what usually gives the ‘connection actively refused error.’