| |   |
| 1 | # MySQL (default setup). Versions 4.1 and 5.0 are recommended. |
| 2 | # |
| 3 | # Install the MySQL driver: |
| 4 | # gem install mysql |
| 5 | # On MacOS X: |
| 6 | # gem install mysql -- --include=/usr/local/lib |
| 7 | # On Windows: |
| 8 | # gem install mysql |
| 9 | # Choose the win32 build. |
| 10 | # Install MySQL and put its /bin directory on your path. |
| 11 | # |
| 12 | # And be sure to use new-style password hashing: |
| 13 | # http://dev.mysql.com/doc/refman/5.0/en/old-client.html |
| 14 | development: |
| 15 | adapter: mysql |
| 16 | database: gitorious_development |
| 17 | username: root |
| 18 | password: |
| 19 | host: localhost |
| 20 | |
| 21 | # Warning: The database defined as 'test' will be erased and |
| 22 | # re-generated from your development database when you run 'rake'. |
| 23 | # Do not set this db to the same as development or production. |
| 24 | test: |
| 25 | adapter: mysql |
| 26 | database: gitorious_test |
| 27 | username: root |
| 28 | password: |
| 29 | host: localhost |
| 30 | |
| 31 | production: |
| 32 | adapter: mysql |
| 33 | database: gitorious_production |
| 34 | username: root |
| 35 | password: |
| 36 | host: localhost |
| toggle raw diff |
--- /dev/null
+++ b/config/database.sample.yml
@@ -0,0 +1,36 @@
+# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
+#
+# Install the MySQL driver:
+# gem install mysql
+# On MacOS X:
+# gem install mysql -- --include=/usr/local/lib
+# On Windows:
+# gem install mysql
+# Choose the win32 build.
+# Install MySQL and put its /bin directory on your path.
+#
+# And be sure to use new-style password hashing:
+# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
+development:
+ adapter: mysql
+ database: gitorious_development
+ username: root
+ password:
+ host: localhost
+
+# 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: mysql
+ database: gitorious_test
+ username: root
+ password:
+ host: localhost
+
+production:
+ adapter: mysql
+ database: gitorious_production
+ username: root
+ password:
+ host: localhost |