summaryrefslogtreecommitdiff
path: root/config/database.mysql-sample.yml
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-02-26 10:52:42 +0100
committerhukl <contact@smyck.org>2009-02-26 10:52:42 +0100
commit024bd260a7bb8df08844bd2ea3d9bdc3b3289fff (patch)
tree2edfbcb49c18d6afe60869d1cf7eed3a3a074332 /config/database.mysql-sample.yml
parentccc73195f7c1cc75fd87310b66dbfe358184cc65 (diff)
renamed the sample files
Diffstat (limited to 'config/database.mysql-sample.yml')
-rw-r--r--config/database.mysql-sample.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/config/database.mysql-sample.yml b/config/database.mysql-sample.yml
new file mode 100644
index 0000000..bdb5311
--- /dev/null
+++ b/config/database.mysql-sample.yml
@@ -0,0 +1,45 @@
1# MySQL. Versions 4.1 and 5.0 are recommended.
2#
3# Install the MySQL driver:
4# gem install mysql
5# On Mac OS X:
6# sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
7# On Mac OS X Leopard:
8# sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
9# This sets the ARCHFLAGS environment variable to your native architecture
10# On Windows:
11# gem install mysql
12# Choose the win32 build.
13# Install MySQL and put its /bin directory on your path.
14#
15# And be sure to use new-style password hashing:
16# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
17development:
18 adapter: mysql
19 encoding: utf8
20 database: mysql_development
21 pool: 5
22 username: root
23 password:
24 socket: /opt/local/var/run/mysql5/mysqld.sock
25
26# Warning: The database defined as "test" will be erased and
27# re-generated from your development database when you run "rake".
28# Do not set this db to the same as development or production.
29test:
30 adapter: mysql
31 encoding: utf8
32 database: mysql_test
33 pool: 5
34 username: root
35 password:
36 socket: /opt/local/var/run/mysql5/mysqld.sock
37
38production:
39 adapter: mysql
40 encoding: utf8
41 database: mysql_production
42 pool: 5
43 username: root
44 password:
45 socket: /opt/local/var/run/mysql5/mysqld.sock