Error ActiveRecord::ConnectionNotEstablished

Hello, this morning I was trying to access my app on my computer, but,
when I initialize the server and access localhost:3000, this message
shows up:

ActiveRecord::ConnectionNotEstablished

So, I try to access via rails console, but again, another error:

[email protected]:~/rails_projects/simple_cms$ rails console
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/bundler-1.0.21/lib/bundler/rubygems_integration.rb:143:in
block in replace_gem': Please install the mysql adapter:gem install
activerecord-mysql-adapter(mysql is not part of the bundle. Add it to Gemfile.) (LoadError) from /home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.0/lib/active_record/connection_adapters/mysql_adapter.rb:5:in<top (required)>’
from
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:in
require' from /home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:inblock in require’
from
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:236:in
load_dependency' from /home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/dependencies.rb:251:inrequire’
from
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:48:in
resolve_hash_connection' from /home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:39:inresolve_string_connection’
from
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:23:in
spec' from /home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:127:inestablish_connection’
from
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.0/lib/active_record/railtie.rb:76:in
block (2 levels) in <class:Railtie>' from /home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:36:ininstance_eval’
from
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:36:in
execute_hook' from /home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:43:inblock in run_load_hooks’
from
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:42:in
each' from /home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.0/lib/active_support/lazy_load_hooks.rb:42:inrun_load_hooks’
from
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.0/lib/active_record/base.rb:709:in
<top (required)>' from /home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.0/lib/active_record/railtie.rb:41:inblock in class:Railtie
from
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/railtie.rb:179:in
call' from /home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/railtie.rb:179:inblock in load_console’
from
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/railtie.rb:179:in
each' from /home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/railtie.rb:179:inload_console’
from
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/engine.rb:429:in
block in load_console' from /home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/application/railties.rb:8:ineach’
from
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/application/railties.rb:8:in
all' from /home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/engine.rb:429:inload_console’
from
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/application.rb:153:in
load_console' from /home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/commands/console.rb:27:instart’
from
/home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/commands/console.rb:8:in
start' from /home/felipe/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.0/lib/rails/commands.rb:41:in<top (required)>’
from script/rails:6:in require' from script/rails:6:in

Some days ago, I was using normally, I can’t say what is happening.

Thank you.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs