Phil Calder | 8 Jul 22:41

Re: Database configuration

Create your MySQL database, user, and grant access for that user. Change your database.yml to something like the following:

development:
  adapter: mysql
  encoding: utf8
  database: my_db_name
  username: my_username
  password: my_password
  host: localhost

You need at least a development database.

Hope this helps.

Phil

2008/7/9 Justin To <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>:

# SQLite version 3.x
#   gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
 adapter: sqlite3
 database: db/development.sqlite3
 timeout: 5000

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
 adapter: sqlite3
 database: db/test.sqlite3
 timeout: 5000

production:
 adapter: sqlite3
 database: db/production.sqlite3
 timeout: 5000

This is the database.yml file. I'm very new to RoR and I'm trying to set
it up. In this file it has sqlite3... I'm using MySQl. What should I do?
Also I can see that there are several databases, development, test,
production. Do I need to create these databases? Tables?

Thanks!!
--
Posted via http://www.ruby-forum.com/.





--
----------------------------------------
Phil Calder
philcalder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
----------------------------------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane