# Database.yml file problem

**URL:** <https://www.ruby-forum.com/t/database-yml-file-problem/137268>\
**Category:** Rails\
**Created:** [May 11, 2008, 4:16am UTC](https://www.ruby-forum.com/t/database-yml-file-problem/137268 "2008-05-11T04:16:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![df-sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Post date:** [May 11, 2008, 4:16am UTC](https://www.ruby-forum.com/t/database-yml-file-problem/137268/1 "2008-05-11T04:16:57Z")

</div>

Well I created a project, and had no problem with this file. I deleted  
the project for other reasons. Now I created a new project, but the  
database.yml file generated this time is set for sqlite, when I have  
mysql. How do I resolve this?

---

<div class="post-metadata">

**Author:** ![df-sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Post date:** [May 11, 2008, 5:28am UTC](https://www.ruby-forum.com/t/database-yml-file-problem/137268/2 "2008-05-11T05:28:01Z")

</div>

All it appears my apache server is down also, at the localhost.

---

<div class="post-metadata">

**Author:** ![df-sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Post date:** [May 11, 2008, 6:14am UTC](https://www.ruby-forum.com/t/database-yml-file-problem/137268/3 "2008-05-11T06:14:22Z")

</div>

Sean S. wrote:

> Well I created a project, and had no problem with this file. I deleted  
> the project for other reasons. Now I created a new project, but the  
> database.yml file generated this time is set for sqlite, when I have  
> mysql. How do I resolve this?

rails myapp -d mysql

---

<div class="post-metadata">

**Author:** ![df-sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Post date:** [May 11, 2008, 6:58am UTC](https://www.ruby-forum.com/t/database-yml-file-problem/137268/4 "2008-05-11T06:58:10Z")

</div>

Thanks.
