[typo] db:create gives "Unknown database"

Arun Gupta arun.gupta at gmail.com
Thu May 29 10:24:33 EDT 2008


Is it mandatory to use production database ?

The command below should generate the development database, isn't it ?

-Arun

On Wed, May 28, 2008 at 11:30 PM, Cyril Mougel <cyril.mougel at gmail.com> wrote:
> On Thu, May 29, 2008 at 1:52 AM, Arun Gupta <arun.gupta at gmail.com> wrote:
>> I'm trying to install Typo 5.0.3 and "rake db:create" gives the following error:
>>
>> -- cut here --
>> (in /Users/arungupta/samples/jruby/typo-5.0.3)
>> rake aborted!
>> #42000Unknown database 'typo_dev'
>>
>> (See full trace by running task with --trace)
>> -- cut here --
>>
>> I'm able to create other trivial Rails applications and db:create
>> database there.
>>
>
>
> it's because the default environnement is development.
>
> Try :
>
> rake db:create RAILS_ENV='production'
>
> So the creation are in typo production database. You know how is this
> base in config.database.yml
>
>
> --
> Cyril Mougel
> http://blog.shingara.fr
> _______________________________________________
> Typo-list mailing list
> Typo-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/typo-list
>



-- 
Web Technologies and Standards
Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta


More information about the Typo-list mailing list