奇妙な問題があります。ro make を試すと、次のように表示rails s
されます。
C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active_record/conne
ction_adapters/mysql_adapter.rb:411:in `real_connect': Can't connect to MySQL se
rver on '127.0.0.0' (10060) (Mysql::Error)
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/connection_adapters/mysql_adapter.rb:411:in `connect'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/connection_adapters/mysql_adapter.rb:131:in `initialize'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/connection_adapters/mysql_adapter.rb:38:in `new'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/connection_adapters/mysql_adapter.rb:38:in `mysql_connection'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/connection_adapters/abstract/connection_pool.rb:309:in `new_connection'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/connection_adapters/abstract/connection_pool.rb:319:in `checkout_new_con
nection'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/connection_adapters/abstract/connection_pool.rb:241:in `block (2 levels)
in checkout'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/connection_adapters/abstract/connection_pool.rb:236:in `loop'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/connection_adapters/abstract/connection_pool.rb:236:in `block in checkou
t'
from C:/Ruby/ruby/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/connection_adapters/abstract/connection_pool.rb:233:in `checkout'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/connection_adapters/abstract/connection_pool.rb:96:in `block in connecti
on'
from C:/Ruby/ruby/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/connection_adapters/abstract/connection_pool.rb:95:in `connection'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/connection_adapters/abstract/connection_pool.rb:404:in `retrieve_connect
ion'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/connection_adapters/abstract/connection_specification.rb:170:in `retriev
e_connection'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/connection_adapters/abstract/connection_specification.rb:144:in `connect
ion'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/model_schema.rb:308:in `clear_cache!'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.2.8/lib/active
_record/railtie.rb:97:in `block (2 levels) in <class:Railtie>'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/activ
e_support/callbacks.rb:418:in `_run__319095901__prepare__837475246__callbacks'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/activ
e_support/callbacks.rb:405:in `__run_callback'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/activ
e_support/callbacks.rb:385:in `_run_prepare_callbacks'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/activ
e_support/callbacks.rb:81:in `run_callbacks'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.2.8/lib/action_d
ispatch/middleware/reloader.rb:74:in `prepare!'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/actionpack-3.2.8/lib/action_d
ispatch/middleware/reloader.rb:48:in `prepare!'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/appl
ication/finisher.rb:47:in `block in <module:Finisher>'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/init
ializable.rb:30:in `instance_exec'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/init
ializable.rb:30:in `run'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/init
ializable.rb:55:in `block in run_initializers'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/init
ializable.rb:54:in `each'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/init
ializable.rb:54:in `run_initializers'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/appl
ication.rb:136:in `initialize!'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/rail
tie/configurable.rb:30:in `method_missing'
from C:/Ruby/acturevue/config/environment.rb:5:in `<top (required)>'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/activ
e_support/dependencies.rb:251:in `require'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/activ
e_support/dependencies.rb:251:in `block in require'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/activ
e_support/dependencies.rb:236:in `load_dependency'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/activ
e_support/dependencies.rb:251:in `require'
from C:/Ruby/acturevue/config.ru:4:in `block in <main>'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.r
b:51:in `instance_eval'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.r
b:51:in `initialize'
from C:/Ruby/acturevue/config.ru:1:in `new'
from C:/Ruby/acturevue/config.ru:1:in `<main>'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.r
b:40:in `eval'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.r
b:40:in `parse_file'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb
:200:in `app'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/comm
ands/server.rb:46:in `app'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb
:301:in `wrapped_app'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb
:252:in `start'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/comm
ands/server.rb:70:in `start'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/comm
ands.rb:55:in `block in <top (required)>'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/comm
ands.rb:50:in `tap'
from C:/Ruby/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/comm
ands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
私が理解できないのは、昨日、すべてがうまくいったということです! 今朝、Windows が更新されたので、リンクがあるのではないでしょうか?
また、アクセスできませんlocalhost:3000
が、PhpMyAdmin のログイン ページに接続できます (ログイン/パスワードを書いた後、接続を拒否します)。localhost:81
この投稿を書く前にいくつかの解決策を見つけましたが、誰も私のために働いてくれませんでした!
前もって感謝します。
アップデート
ここに私の db.yml があります:
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
adapter: mysql
encoding: utf8
reconnect: false
database: acturevue_development
pool: 5
username: root
password: password
host: localhost
Gemfile を更新して、gem が問題であるかどうかを確認します。
source 'http://rubygems.org'
gem 'rails', '3.2.8'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
gem 'geocoder'
gem 'gmaps4rails'
gem "bootstrap-sass", ">= 2.1.0.0"
gem "rolify", ">= 3.2.0"
gem "simple_form", ">= 2.0.3"
gem "paperclip", "~> 3.0"