Silicon Valley Ruby Meetup Message Board › questions about ruby on rails installing on Windows 7// solved

questions about ruby on rails installing on Windows 7// solved

Linghua J.
user 44251182
Sunnyvale, CA
Post #: 1

Problem solved.. forget to rack db:migrate
--------------------------------------­---------------

Hey guys,
I need some help on installing ROR with mySQL. Please let me if it is not appropriate to ask questions here. Thanks!

I used rail installer, mySQL.In new project, when set the data base to mySQL, server shows action record: connection is not established.

Any one can let me know how to fix it?

Error message is as following:


$ rails s
=> Booting WEBrick
=> Rails 3.2.1 application starting in development on http://0.0.0.0:3000...­
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2012-04-22 16:52:22] INFO WEBrick 1.3.1
[2012-04-22 16:52:22] INFO ruby 1.9.3 (2012-02-16) [i386-mingw32]
[2012-04-22 16:52:22] INFO WEBrick::HTTPServer#start: pid=3584 port=3000
[2012-04-22 16:53:00] WARN Could not determine content-length of response body.
Set content-length of the response or set Response#chunked = true


Started GET "/assets/rails.png" for 127.0.0.1 at 2012-04-22 16:53:05 -0700

ActiveRecord::ConnectionNotEstablished­ (ActiveRecord::ConnectionNotEstablished)­:

activerecord (3.2.1) lib/active_record/connection_adapters/ab­stract/connection
_pool.rb:374:in `retrieve_connection'
activerecord (3.2.1) lib/active_record/connection_adapters/ab­stract/connection
_specification.rb:168:in `retrieve_connection'
activerecord (3.2.1) lib/active_record/connection_adapters/ab­stract/connection
_specification.rb:142:in `connection'
activerecord (3.2.1) lib/active_record/query_cache.rb:67:in `rescue in call'
activerecord (3.2.1) lib/active_record/query_cache.rb:61:in `call'
activerecord (3.2.1) lib/active_record/connection_adapters/ab­stract/connection
_pool.rb:443:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/callbacks­.rb:28:in `block in
call'
activesupport (3.2.1) lib/active_support/callbacks.rb:405:in `_run__887538709_
_call__273821807__callbacks'
activesupport (3.2.1) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.1) lib/active_support/callbacks.rb:385:in `_run_call_callba
cks'
activesupport (3.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.1) lib/action_dispatch/middleware/callbacks­.rb:27:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/reloader.­rb:65:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/remote_ip­.rb:31:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/debug_exc­eptions.rb:16:in `c
all'
actionpack (3.2.1) lib/action_dispatch/middleware/show_exce­ptions.rb:56:in `ca
ll'
railties (3.2.1) lib/rails/rack/logger.rb:26:in `call_app'
railties (3.2.1) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/request_i­d.rb:22:in `call'
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.1) lib/active_support/cache/strategy/local_­cache.rb:72:in `
call'
rack (1.4.1) lib/rack/lock.rb:15:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/static.rb­:53:in `call'
railties (3.2.1) lib/rails/engine.rb:479:in `call'
railties (3.2.1) lib/rails/application.rb:220:in `call'
rack (1.4.1) lib/rack/content_length.rb:14:in `call'
railties (3.2.1) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
c:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9­.1/webrick/httpserver.rb:138:in `servi
ce'
c:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9­.1/webrick/httpserver.rb:94:in `run'
c:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9­.1/webrick/server.rb:191:in `block in
start_thread'


Rendered c:/RailsInstaller/Ruby1.9.3/lib/ruby/gem­s/1.9.1/gems/actionpack-3.2.1
/lib/action_dispatch/middleware/templa­tes/rescues/_trace.erb (6.0ms)
Rendered c:/RailsInstaller/Ruby1.9.3/lib/ruby/gem­s/1.9.1/gems/actionpack-3.2.1
/lib/action_dispatch/middleware/templa­tes/rescues/_request_and_response.erb (38.
0ms)
Rendered c:/RailsInstaller/Ruby1.9.3/lib/ruby/gem­s/1.9.1/gems/actionpack-3.2.1
/lib/action_dispatch/middleware/templa­tes/rescues/diagnostics.erb within rescues
/layout (106.0ms)
Powered by mvnForum

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy