3. Starting the project

Now that our table is created, let us start our project. Go into a directory of your choice and run the following command:
$ rails Todo

This will output a big listing describing the creation of a bunch of directories and files, setting permissions, etc. Once that is done (should take less than a second), go into that newly created directory.

Now, we will start by editing the main configuration file, config/database.yml. This is what it looks like at first:
development:
  adapter: mysql
  database: rails_development
  host: localhost
  username: root
  password: 

test:
  adapter: mysql
  database: rails_test
  host: localhost
  username: root
  password:

production:
  adapter: mysql
  database: rails_production
  host: localhost
  username: root
  password: 
We will modify database.yml to use our database. Modify the development section to this:
development:
  adapter: mysql
  database: todo
  host: localhost
  username: root
  password:

Now our Rails application will use the MySQL database todo. Be sure to modify the username and password fields if you have configured new ones. Refer to the MySQL documentation for instructions on how to do add users to MySQL.