Arun,

First you need to modify the database.yml so it has permission to access typo_dev typo_tests or typo.

If  you want to run with root that's fine.

at a shell prompt type,

mysqladmin create typo
mysqladmin create typo_dev
mysqladmin create typo_tests

then you can try rake db:create

On May 29, 2008, at 5:49 PM, Arun Gupta wrote:

Okay this is plain silly,
Sorry, but not working for me :(


what does your config/database.yml show?

It is the one bundled with Typoe 5.0.3 and shown here:

login: &login
 adapter: mysql
 host: localhost
 username: root
 password:


development:
 database: typo_dev
 <<: *login

test:
 database: typo_tests
 <<: *login

production:
 database: typo
 <<: *login


Which Adapter are you using SQLite3? MySQL?
MySQL with JRuby


If you are using MySQL please create the database, db:create does not create
the database for you.
Hmmm ...

~/testbed/jruby-1.1.2/bin/jruby -S rails foo -d mysql
cd foo
~/testbed/jruby-1.1.2/bin/jruby -S rake db:create

http://dev.rubyonrails.org/changeset/6849 also says so.

What am I missing ?

-Arun


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

!DSPAM:483f4f4c110161263019146!



_______________________________________________
Typo-list mailing list
Typo-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/typo-list

Reply via email to