ok. i thought i can create with rake db:create:all from commandline
the db tables. In ActiveRecord i must not create the tables from
phpmyadmin.
when i wrote db:create:all and then rake db:migrate the tables are
automatically created.
In Datamapper i must first create the tables and then i can run the
rake tasks ?

On 14 Nov., 04:08, Chris Corbyn <[email protected]> wrote:
> You haven't changed the database name to point to a real database.  It's 
> looking for a database called "rails3_app_development".  You need to create a 
> database in MySQL, then put the name of that database in the yml file.
>
> On 14/11/2011, at 1:57 PM, ballica28 wrote:
>
>
>
>
>
>
>
> > I use an mysql database (xampp) and i edit the database.yml file but
> > when i type the command rake db:automigrate the output is always the
> > same
>
> > On 14 Nov., 03:51, Chris Corbyn <[email protected]> wrote:
> >> You need to edit that configuration to point to wherever your database is 
> >> installed.  The config is just an example.
>
> >> On 14/11/2011, at 1:41 PM, ballica28 wrote:
>
> >>> ok i start a project from scratch with the command rails new
> >>> project_name -mhttp://datamapper.org/templates/rails.rb
> >>> my database file see like this
>
> >>> defaults: &defaults
> >>>  adapter: mysql
> >>>  username: root
> >>>  password:
> >>>  host: localhost
>
> >>> development:
> >>>  database: rails3_app_development
> >>>  <<: *defaults
> >>> test:
> >>>  database: rails3_app_test
> >>>  <<: *defaults
> >>> production:
> >>>  database: rails3_app_production
> >>>  <<: *defaults
>
> >>> but when i type rake db:automigrate i become the ouput that the
> >>> rails3_app_development database not found.
> >>> I have no idea. Please Help me
>
> >>> On 14 Nov., 01:44, MarkMT <[email protected]> wrote:
> >>>> I believe what you are looking for can be found 
> >>>> here:https://github.com/datamapper/dm-rails
>
> >>>> On Nov 13, 5:38 pm, ballica28 <[email protected]> wrote:
>
> >>>>> Hello
> >>>>> I want create an rails 3 project with datamapper. What i must type in
> >>>>> the console (rails new project_name ??)
> >>>>> I have installed the gem files.
>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups 
> >>> "DataMapper" 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 
> >>> athttp://groups.google.com/group/datamapper?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "DataMapper" 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 
> > athttp://groups.google.com/group/datamapper?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en.

Reply via email to