# Default setting of Rails

**URL:** <https://www.ruby-forum.com/t/default-setting-of-rails/127955>\
**Category:** Rails\
**Created:** [February 3, 2008, 7:55am UTC](https://www.ruby-forum.com/t/default-setting-of-rails/127955 "2008-02-03T07:55:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubynut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8e8cbc/32.png) [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Post date:** [February 3, 2008, 7:55am UTC](https://www.ruby-forum.com/t/default-setting-of-rails/127955/1 "2008-02-03T07:55:02Z")

</div>

i have just installed RoR. when i create a new rails project use the  
command “rails test” without any options, the default database setting  
is sqlite3 in my computer. the default should be MySQL, is anything i  
did wrong?

how do i fix it?

---

<div class="post-metadata">

**Author:** ![rubynut](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8e8cbc/32.png) [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Post date:** [February 3, 2008, 8:04am UTC](https://www.ruby-forum.com/t/default-setting-of-rails/127955/2 "2008-02-03T08:04:59Z")

</div>

The new default is SQLite. This is a really recent change, so if  
you’re following nearly any book in print or an older online article,  
it will say MySQL.

To change it, you can use the -d option.

rails your\_app -d mysql

–Jeremy

On Feb 3, 2008 1:53 AM, Ruby N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> i have just installed RoR. when i create a new rails project use the  
> command “rails test” without any options, the default database setting  
> is sqlite3 in my computer. the default should be MySQL, is anything i  
> did wrong?
> 
> how do i fix it?
> 
> >

–  
[http://www.jeremymcanally.com/](http://www.jeremymcanally.com/)

My books:  
Ruby in Practice

> **[Ruby in Practice](https://www.manning.com/books/ruby-in-practice)**
>
> Like Ruby itself, Ruby in Practice will make you more productive. The book shows you practical techniques and strategies for small projects and large-scale environments. A cookbook-style reference, it gives you concrete examples of systems...

My free Ruby e-book

> **[Site not found · DreamHost](http://www.humblelittlerubybook.com/)**
>
> The owner of this domain has not yet uploaded their website.

My blogs:

> **[Site not found · DreamHost](http://www.mrneighborly.com/)**
>
> The owner of this domain has not yet uploaded their website.

[http://www.rubyinpractice.com/](http://www.rubyinpractice.com/)
