# How to stop loading database.yml file?

**URL:** <https://www.ruby-forum.com/t/how-to-stop-loading-database-yml-file/129628>\
**Category:** Rails\
**Created:** [February 20, 2008, 7:30am UTC](https://www.ruby-forum.com/t/how-to-stop-loading-database-yml-file/129628 "2008-02-20T07:30:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bala](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@Bala](https://www.ruby-forum.com/u/Bala)\
**Post date:** [February 20, 2008, 7:30am UTC](https://www.ruby-forum.com/t/how-to-stop-loading-database-yml-file/129628/1 "2008-02-20T07:30:36Z")

</div>

Hi Experts,

I was wondering if whether we can stop loading database.yml file when  
rails loaded instead i want to load my new configuration yml file, is  
that possible. to do?

I’m eagerly waiting for your reply guys.

Thanks,

Bala

---

<div class="post-metadata">

**Author:** ![Bala](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@Bala](https://www.ruby-forum.com/u/Bala)\
**Post date:** [February 20, 2008, 9:10am UTC](https://www.ruby-forum.com/t/how-to-stop-loading-database-yml-file/129628/2 "2008-02-20T09:10:16Z")

</div>

Guys,

Any suggestions?

Thanks,  
Bala

---

<div class="post-metadata">

**Author:** ![Bala](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@Bala](https://www.ruby-forum.com/u/Bala)\
**Post date:** [February 20, 2008, 9:26am UTC](https://www.ruby-forum.com/t/how-to-stop-loading-database-yml-file/129628/3 "2008-02-20T09:26:13Z")

</div>

I’m development mode,

mysql gem installed, running with help of webrick.

so where do i start? i’m blank right now.

☹

On Feb 20, 1:18 pm, Visit Indonesia 2008 \<rails-mailing-l…@andreas-

---

<div class="post-metadata">

**Author:** ![Bala](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@Bala](https://www.ruby-forum.com/u/Bala)\
**Post date:** [February 20, 2008, 9:36am UTC](https://www.ruby-forum.com/t/how-to-stop-loading-database-yml-file/129628/4 "2008-02-20T09:36:16Z")

</div>

Your objective is want to change configuration in database.yml right?  
you have to stop your webrick and reload it after your database.yml’s  
configured. I never try deploying in development server. Sorry if you  
are not satisfied with my help.

~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~\*  
Reinhart Ariando  
YM : booking2heaven  
Web: [http://teapoci.blogspot.com](http://teapoci.blogspot.com)  
~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~\*

---

<div class="post-metadata">

**Author:** ![Bala](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@Bala](https://www.ruby-forum.com/u/Bala)\
**Post date:** [February 20, 2008, 9:40am UTC](https://www.ruby-forum.com/t/how-to-stop-loading-database-yml-file/129628/5 "2008-02-20T09:40:19Z")

</div>

No i dont want to load database.yml file itself, instead i’ve my own  
yml file.  
i want to load when rails start. 🙂  
sorry if my question confused you. 🙂

On Feb 20, 1:36 pm, Visit Indonesia 2008 \<rails-mailing-l…@andreas-

---

<div class="post-metadata">

**Author:** ![Bala](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/94ad74/32.png) [@Bala](https://www.ruby-forum.com/u/Bala)\
**Post date:** [February 20, 2008, 9:18am UTC](https://www.ruby-forum.com/t/how-to-stop-loading-database-yml-file/129628/6 "2008-02-20T09:18:42Z")

</div>

Are you in development or production server?

if you are in production you should use svn and capistrano.

[Voodoo@123.12.12.123](mailto:Voodoo@123.12.12.123) [~/project\_dev]\> svn add config/database.yml  
[Voodoo@123.12.12.123](mailto:Voodoo@123.12.12.123) [~/project\_dev]\> svn commit -m “Configured  
Application for Capistrano”  
[Voodoo@123.12.12.123](mailto:Voodoo@123.12.12.123) [~/project\_dev]\> cap deploy

it will auto deploy to your project app in production server.

if you are in development server :

first you have to do is make sure that you have done gem installed  
mysql, you can change without shutdown the rails. (!~\_~)

~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~\*  
Reinhart Ariando  
YM : booking2heaven  
Web: [http://teapoci.blogspot.com](http://teapoci.blogspot.com)  
~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~\*
