Hello
I just tried to get started with Merb and now I have a problem
generating the database and schema. I followed the docs in the Wiki
and created this database.yml:

=================
# This is a sample database file for the DataMapper ORM
development: &defaults
  # These are the settings for repository :default
  adapter:  mysql
  database: myapp
  username: root
  host: localhost
  socket: /tmp/mysql.sock

  # Add more repositories
  # repositories:
  #   repo1:
  #     adapter:  sqlite3
  #     database: sample_1_development.db
  #   repo2:
  #     ...

test:
  <<:       *defaults
  database: myapp_test

  # repositories:
  #   repo1:
  #     database: sample_1_test.db

production:
  <<:       *defaults
  database: myapp_prod

  # repositories:
  #   repo1:
  #     database: sample_production.db

rake:
  <<: *defaults
================

then I called
$ rake db:automigrate

and I get this error:

(in /home/markus/devel/ruby/merb/mytest)
Loading init file from /home/markus/devel/ruby/merb/mytest/config/init.rb
Loading /home/markus/devel/ruby/merb/mytest/config/environments/development.rb
Loading init file from /home/markus/devel/ruby/merb/mytest/config/init.rb
Loading /home/markus/devel/ruby/merb/mytest/config/environments/rake.rb
 ~ Connecting to database...
 ~ Loaded slice 'MerbAuthSlicePassword' ...
 ~ Parent pid: 17022
 ~ Compiling routes...
 ~ Activating slice 'MerbAuthSlicePassword' ...
 ~ Unknown database 'myapp' (mysql_error_code=-001)
rake aborted!
Unknown database 'myapp' (mysql_error_code=-001)

(See full trace by running task with --trace)




I use Merb 1.0 with Ruby 1.8.7 and a Linux Machine with MySQL.

do I have to create the databases myself? As far as I understood the
docs, the rake task should do everything.

I couldn't find a solution via google.

Markus

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to