Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6905237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:09:33+00:00 2026-05-27T08:09:33+00:00

I recently deployed my rails app on Heroku. In the process I accidentally deleted

  • 0

I recently deployed my rails app on Heroku. In the process I accidentally deleted my database.yml file. I restored the file from the most recent copy in my git repository, however, now every time I try to log in to my development environment (on localhost:3000), it tells me:

ActiveRecord::ConnectionNotEstablished.

I am using the mysql2 adapter and running ruby 1.8.7 on rails 3.0.9

I am confused because I believe I have restored my app to its exact state prior to deploying…

the development part of my database.yml file:

development:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: thankfl_development
  pool: 5
  username: ------
  password: ------
  socket: /tmp/mysql.sock

I can still access the database through the rails console, just not through the browser.

Any ideas what I could do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:09:33+00:00Added an answer on May 27, 2026 at 8:09 am

    Did you restart your web server (webrick, thin, passenger, apache, or whatever), after restoring the .yml file? The database .yml file is read at startup, not on every request, so any changes/adds/removes involving that file require a web server restart, even in development mode.

    That would explain why the console is working (since it loads the database.yml file when it opens), but your dev app doesn’t.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Ruby on Rails app that I've recently deployed to a remote
I'm pretty new to ROR. I've recently deployed an app on heroku and have
Have a working rails app on development but issue deployed. Was recently working but
I have recently deployed an app to a shared host (webfaction), and for no
I've recently deployed my first Rails application on a Mac mini running Lion 10.7.2
I've recently deployed some A/B testing experiments using vanity to my heroku instance. However,
I recently deployed a Spring MVC application to google app engine, and the intial
My company recently deployed our first Silverlight app, and, as expected, we've had a
I'm from the UK, and have recently deployed a website on WinHost's Basic Package
I recently read that php applications can be deployed on Google App Engine using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.