Forum: Ruby on Rails Newbie - not very technical - please help

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0aef00c97b0023d80a83ab2a5654e51e?d=identicon&s=25 Jonathan Booth (jnb)
on 2005-12-02 21:28
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â?}
Fef8f651fefa7b23683a4e57041474d2?d=identicon&s=25 Jonathan Leonard (johanatan)
on 2005-12-03 02:43
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.'
This topic is locked and can not be replied to.