Skip to content

Commit

Permalink
Prefer the mysql2 gem for MySQL database.ymls
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Aug 24, 2010
1 parent bb75c33 commit eb873f7
Showing 1 changed file with 4 additions and 13 deletions.
Original file line number Original file line Diff line number Diff line change
@@ -1,21 +1,12 @@
# MySQL. Versions 4.1 and 5.0 are recommended. # MySQL. Versions 4.1 and 5.0 are recommended.
# #
# Install the MySQL driver: # Install the MySQL driver:
# gem install mysql # gem install mysql2
# On Mac OS X:
# sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
# On Mac OS X Leopard:
# sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
# This sets the ARCHFLAGS environment variable to your native architecture
# 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: # And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html # http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development: development:
adapter: mysql adapter: mysql2
encoding: utf8 encoding: utf8
reconnect: false reconnect: false
database: <%= app_name %>_development database: <%= app_name %>_development
Expand All @@ -32,7 +23,7 @@ development:
# re-generated from your development database when you run "rake". # re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production. # Do not set this db to the same as development or production.
test: test:
adapter: mysql adapter: mysql2
encoding: utf8 encoding: utf8
reconnect: false reconnect: false
database: <%= app_name %>_test database: <%= app_name %>_test
Expand All @@ -46,7 +37,7 @@ test:
<% end -%> <% end -%>


production: production:
adapter: mysql adapter: mysql2
encoding: utf8 encoding: utf8
reconnect: false reconnect: false
database: <%= app_name %>_production database: <%= app_name %>_production
Expand Down

0 comments on commit eb873f7

Please sign in to comment.