Browse files

Added doc for Mysql database with Jruby platform #jruby

  • Loading branch information...
arunagw authored and fxn committed Jun 15, 2011
1 parent f43ae97 commit 739f8e9051f96ad45686448ab908f70d69924bf6
Showing with 12 additions and 0 deletions.
  1. +12 −0 railties/guides/source/getting_started.textile
@@ -268,6 +268,18 @@ development:
database: db/development.sqlite3
+h5. Configuring an Mysql Database for Jruby Platform
+If you choose to use Mysql and using Jruby, your +config/database.yml+ will look a little different. Here's the development section:
+ adapter: jdbcmysql
+ database: blog_development
+ username: root
+ password:
TIP: You don't have to update the database configurations manually. If you had a look at the options of application generator, you have seen that one of them is named <tt>--database</tt>. It lets you choose an adapter for couple of most used relational databases. You can even run the generator repeatedly: <tt>cd .. && rails new blog --database=mysql</tt>. When you confirm the overwriting of the +config/database.yml+ file, your application will be configured for MySQL instead of SQLite.
h4. Creating the Database

0 comments on commit 739f8e9

Please sign in to comment.