Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed database from sqlite3 to mysql: chapter 5 uses MySqlImport

  • Loading branch information...
commit 3dfeedfef4731ad997533f768bb53599f3534745 1 parent b6b175b
James Chen authored
Showing with 16 additions and 14 deletions.
  1. +16 −14 config/database.yml
30 config/database.yml
View
@@ -1,19 +1,21 @@
-# SQLite version 3.x
-# gem install sqlite3-ruby (not necessary on OS X Leopard)
+
development:
- adapter: sqlite3
- database: db/development.sqlite3
- timeout: 5000
+ adapter: mysql
+ encoding: utf8
+ database: maps_development
+ username: root
+ password:
-# 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
+ adapter: mysql
+ encoding: utf8
+ database: maps_test
+ username: root
+ password:
production:
- adapter: sqlite3
- database: db/production.sqlite3
- timeout: 5000
+ adapter: mysql
+ encoding: utf8
+ database: maps_production
+ username:
+ password:
Please sign in to comment.
Something went wrong with that request. Please try again.