Skip to content
Benjamin Vialle edited this page May 15, 2011 · 5 revisions

Setting up the Database (SQLite3)

Installing the Database

GNU/Linux

On Debian and Ubuntu, a simple

#> aptitude install sqlite3 libsqlite3-dev

Mac OS X

Everything is already bundle inside Mac OS X.

Microsoft Windows

Configuring SQLite3

If you are using SQLite3, save the following text as config/database.yml (in the MarkUs root directory):

# SQLite version 3.x
#   gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
  adapter: sqlite3
  database: db/development.sqlite3
  pool: 5
  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
  pool: 5
  timeout: 5000

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

If you are using PostgreSQL, enter the following command (from the MarkUs root directory):

#>cp config/database.yml.postgresql config/database.yml

If you are using MySQL, enter the following command (from the MarkUs root directory):

#>cp config/database.yml.mysql config/database.yml

You can then uncomment the "development" section of <code>config/database.yml</code>.

Now go back to the MarkUs tutorial :

Clone this wiki locally